Edgewall Software
Modify

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 gt4329b, 17 years ago

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.

comment:2 by gt4329b, 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 gt4329b, 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 gt4329b, 17 years ago

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.

comment:5 by gt4329b, 17 years ago

Woot!

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

comment:6 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.