Closed Bug 538871 Opened 15 years ago Closed 15 years ago

Comment line wrapping breaks autolinkification of internal links (e.g. bug xxxx, comment yy)

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 514703

People

(Reporter: thomas8, Unassigned)

Details

STR

1. Add a comment to a bug that contains an autolinkifiable link (e.g. to bug 425606, comment 15) that goes beyond the end of the line

Actual result
- bugzilla does linewrapping first
- the link is not autolinkified (see above, in step 1).
This bug will regularly affect a LOT of comments where such links happen to be on the edge.

Expected result
- the link should be autolinkified correctly

The cause:
- bugzilla wraps the comment text before linkifying
- due to the inserted line break, linkification fails

The fix:
- first linkify
- then wrap, based on the character count of visible text

This bug has the same cause and easy fix as bug 425606, but the symptoms are different:

Bug 425606: autolinkification works correctly, but adds an extra word ("[Details]") after wrapping, so the wrap layout breaks.
This bug: the wrap layout is ok, but autolinkification breaks.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.