Edgewall Software

Ticket #6786 (closed defect: worksforme)

Opened 11 months ago

Last modified 9 months ago

Lines in ticket comments not wrapping properly

Reported by: gt4329b Owned by: cboos
Priority: low Milestone:
Component: rendering Version:
Severity: normal Keywords: ticket comment wrap line
Cc: gt4329b@…

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

Change History

Changed 11 months ago by gt4329b

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.

Changed 11 months ago by gt4329b

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.

Changed 11 months ago by gt4329b

Bah -- well, crap. FWIW, when I previewed the prior comment, it did fail to wrap properly, as I described in the ticket description.

Changed 11 months ago by gt4329b

OK, it looks like it happens when

  1. A preformatted block's contents "needs" to wrap
  2. 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.

Changed 11 months ago by gt4329b

Woot!

<connery>The day is mine!</connery>

Changed 9 months ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

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.

Add/Change #6786 (Lines in ticket comments not wrapping properly)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.