Posts: fix HTML body parsing #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Iam_Tj/BSSG:fix_html_body_parsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Existing sed expression assumes elements are alone on a line. It
fails when there are multiple elements for two reasons:
last element
The replacement works as follows:
done on the complete text of the input
Sed expression tested using:
Existing sed expression assumes <body> elements are alone on a line. It fails when there are multiple elements for two reasons: 1. The 2-address 'end' match will never happen 2. The greedy * wildcard will match everything up to the end of the last element The replacement works as follows: 1. Any line other than the last is copied into the hold space 2. The last line is added then hold swapped to pattern and a replace is done on the complete text of the input Signed-off-by: Tj <tj.iam.tj@proton.me>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.