Opened 17 years ago
Closed 17 years ago
#6786 closed defect (worksforme)
Lines in ticket comments not wrapping properly
Reported by: | gt4329b | Owned by: | Christian Boos |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | rendering | Version: | |
Severity: | normal | Keywords: | ticket comment wrap line |
Cc: | gt4329b@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Specifically, lines in ticket comments that start with preformatted text (e.g., code blocks) don't wrap properly.
I'll try to create a comment on this ticket that illustrates this behavior. If I can't duplicate it here (not a good sign), I'll upload a screenshot.
Attachments (0)
Change History (6)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
This line probably won't be long enough to wrap.
This text is preformatted
, and is snugged up against this really really really really really long line that should wrap, but hopefully (?) won't so that I can demonstrate the behavior that is described in this ticket.
comment:3 by , 17 years ago
Bah — well, crap. FWIW, when I previewed the prior comment, it did fail to wrap properly, as I described in the ticket description.
comment:4 by , 17 years ago
OK, it looks like it happens when
- A preformatted block's contents "needs" to wrap
- Normal text (i.e., not inside the preformatted block) that comes immediately after it, with no newlines entered by the user, fails to wrap properly.
So lets try it:
This really really really really really really really really really really long line of preformatted text should get wrapped, as we would expect it to.
But this text, entered immediately after the preformatted block with no newlines, doesn't get wrapped properly, which is not expected.
comment:6 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Also fixed by r6737.
Note that the pre was introduced for a reason (even if I forgot which!), but it seems that it was more trouble than what was worth, so better use the normal.
This line, which I'm going to try and make really really really really really really really really really long, should wrap properly because (a) Trac rules and (b) it doesn't have any preformatted/code block text in it.