[bug] Word wrapping breaks punctuation after URLs
Posted: Fri Nov 04, 2022 8:45 pm
I filed this issue on the phpBB bug tracker but they told me to post it here, which seems silly but...
---
When a BBCode [/url] closing tag is followed by a punctuation character, word wrapping can still insert a line break between the end of the generated URL and the punctuation.
For example, the following:
May be rendered as (Chrome 106, Windows 10) the attached screenshot. Note the comma is on the following line.
1. Create a BBCode URL followed by a punctuation mark.
2. Enter an appropriate amount of text such that the URL is at the end of a word-wrapped line.
3. View the rendered post.
Expected: Punctuation stays with URL.
Actual: Word-wrap inserts line break between URL and punctuation.
Solution: phpBB should insert non-breaking space characters ( in HTML) before punctuation if certain punctuation characters immediately follow a URL with no whitespace separating the two.
---
When a BBCode [/url] closing tag is followed by a punctuation character, word wrapping can still insert a line break between the end of the generated URL and the punctuation.
For example, the following:
Code: Select all
...there is also [url=https://redacted]an issue preventing Move/Look from being reassigned[/url], so resetting...
Steps:
1. Create a BBCode URL followed by a punctuation mark.
2. Enter an appropriate amount of text such that the URL is at the end of a word-wrapped line.
3. View the rendered post.
Expected: Punctuation stays with URL.
Actual: Word-wrap inserts line break between URL and punctuation.
Solution: phpBB should insert non-breaking space characters ( in HTML) before punctuation if certain punctuation characters immediately follow a URL with no whitespace separating the two.
If any admins care, it's probably enough for you to just post a confirm / no-repro comment there instead of creating a whole new report.David Colón wrote: Please report it to the site administrator and they can follow up and create a bug report if they find it's a bug in the software.