Ticket #4588 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Empty lines in pre-blocks are not preserved in FullBlogPlugin

Reported by: arteme Assigned to: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

When creating posts that contain preformatted text blocks (such as code) that are encapsulated in '' and '' marks, empty lines are not preserved when the post is being displayed.

Here is a simple test post:

This is a test to check how Trac preserves line breaks.

This line should be on it's own.

This line and
this line are concatenated.

{{{
These lines should be separated by one empty line.

These lines should be separated by one empty line.

These lines should be separated by one empty line.
}}}

Attachments

linebreak-test-wiki.png (64.7 kB) - added by arteme on 02/06/09 08:01:40.
A screen shot of how the sample post is rendered in a wiki page.
linebreak-test-blog.png (88.8 kB) - added by arteme on 02/06/09 08:03:10.
A screen shot of how the sample post is rendered in a blog page.
linebreak-test-wiki.html (5.6 kB) - added by arteme on 02/06/09 08:04:11.
The HTML output for a wiki page.
linebreak-test-blog.html (7.8 kB) - added by arteme on 02/06/09 08:04:50.
The HTML output for a blog page.
linebreak-test-ticket.png (67.2 kB) - added by arteme on 02/06/09 12:24:18.
A screen shot of how the sample post is rendered in a ticket page.
linebreak-test-ticket.html (15.7 kB) - added by arteme on 02/06/09 12:25:17.
The HTML output for a ticket page.
linebreak-test-ticket.2.html (15.7 kB) - added by arteme on 02/06/09 12:25:23.
The HTML output for a ticket page.

Change History

02/06/09 08:01:40 changed by arteme

  • attachment linebreak-test-wiki.png added.

A screen shot of how the sample post is rendered in a wiki page.

02/06/09 08:03:10 changed by arteme

  • attachment linebreak-test-blog.png added.

A screen shot of how the sample post is rendered in a blog page.

02/06/09 08:04:11 changed by arteme

  • attachment linebreak-test-wiki.html added.

The HTML output for a wiki page.

02/06/09 08:04:50 changed by arteme

  • attachment linebreak-test-blog.html added.

The HTML output for a blog page.

02/06/09 08:10:39 changed by arteme

This is observed using a fresh Trac setup with all the latest components:

02/06/09 11:31:25 changed by osimons

  • owner changed from osimmons to osimons.

Hmm. Testing on a slightly older Trac 0.11 shows no such problems. I have a feeling this is related to recent introduction of preserve_newlines rendering hints.

For comparison, could you also provide the result of putting the wiki markup into a new ticket description?

02/06/09 12:24:18 changed by arteme

  • attachment linebreak-test-ticket.png added.

A screen shot of how the sample post is rendered in a ticket page.

02/06/09 12:25:17 changed by arteme

  • attachment linebreak-test-ticket.html added.

The HTML output for a ticket page.

02/06/09 12:25:23 changed by arteme

  • attachment linebreak-test-ticket.2.html added.

The HTML output for a ticket page.

02/06/09 12:27:10 changed by arteme

The ticket page seems to render the text correctly.

02/06/09 14:28:40 changed by osimons

  • status changed from new to closed.
  • resolution set to fixed.

(In [5204]) FullBlogPlugin: Fix for a change in pre-formatted newline handling that seems to have sneaked into a recent Trac 0.11.x. Closes #4588.


Add/Change #4588 (Empty lines in pre-blocks are not preserved in FullBlogPlugin)




Change Properties
Action