Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-17055

Word wrapping breaks punctuation after URLs

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Invalid
    • 3.3.4
    • None
    • Posting
    • None
    • Chrome 106, Windows 10

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            JasonC3 JasonC3
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: