Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9027 closed defect (fixed)

In 0.11-stable, line breaks are added between section headings and section text

Reported by: Ryan Ollos <ryano@…> Owned by: Christian Boos
Priority: normal Milestone: 0.12
Component: wiki system Version: 0.11-stable
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This issue appears to be fixed in 0.12dev, however exists in the latest 0.11-stable. Using the following markup in the description field results in extra linebreaks between the section heading and text.

== Section 1 == 
Section 1 Description.

== Section 2 ==
Section 1 Description.

You can see that it looks okay under 0.12.


Section 1

Section 1 Description.

Section 2

Section 1 Description.


However, as seen in the demo site http://trac.edgewall.org/demo-0.11/ticket/59, there are extra line ending added between the section heading and section text.

I don't see this behavior with markup on wiki pages.

I will also attach a screen capture from my Trac 0.11.4 installation showing this issue.

Screen capture demonstrating issue on my Trac instance

Attachments (1)

ExtraLineBreaksWhenUsingHeadingsInTicket.png (47.9 KB ) - added by Ryan Ollos <ryano@…> 14 years ago.
Screen capture demonstrating issue on my Trac instance

Download all attachments as: .zip

Change History (4)

by Ryan Ollos <ryano@…>, 14 years ago

Screen capture demonstrating issue on my Trac instance

in reply to:  description comment:1 by Christian Boos, 14 years ago

Component: ticket systemwiki system
Milestone: next-minor-0.12.x

Replying to Ryan Ollos <ryano@…>:

This issue appears to be fixed in 0.12dev, however exists in the latest 0.11-stable. Using the following markup in the description field results in extra linebreaks between the section heading and text.

== Section 1 == 
Section 1 Description.

== Section 2 ==
Section 1 Description.

You can see that it looks okay under 0.12.

No, see e.g. http://trac.edgewall.org/demo-0.12/ticket/39#comment:1

The effect is due to [ticket] preserve_newlines being true.

comment:2 by Christian Boos, 14 years ago

Milestone: next-minor-0.12.x0.12
Resolution: fixed
Status: newclosed

We simply needed to add <br> only when we were inside a paragraph.

Fixed in r9312.

comment:3 by Remy Blank, 14 years ago

Owner: set to Christian Boos

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.