Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17055

Word wrapping breaks punctuation after URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Trivial Trivial
    • None
    • 3.3.4
    • Posting
    • None
    • Chrome 106, Windows 10

      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:

      ...there is also [url=https://redacted]an issue preventing Move/Look from being reassigned[/url], so resetting...

      May be rendered as (Chrome 106, Windows 10) the attached screenshot. Note the comma is on the following line.

      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.

            Unassigned Unassigned
            JasonC3 JasonC3 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: