Opened 16 years ago
Closed 16 years ago
#4588 closed defect (fixed)
Empty lines in pre-blocks are not preserved in FullBlogPlugin
Reported by: | Artem Egorkine | Owned by: | 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 (7)
Change History (11)
Changed 16 years ago by
Attachment: | linebreak-test-wiki.png added |
---|
Changed 16 years ago by
Attachment: | linebreak-test-blog.png added |
---|
A screen shot of how the sample post is rendered in a blog page.
Changed 16 years ago by
Attachment: | linebreak-test-wiki.html added |
---|
The HTML output for a wiki page.
Changed 16 years ago by
Attachment: | linebreak-test-blog.html added |
---|
The HTML output for a blog page.
comment:1 Changed 16 years ago by
This is observed using a fresh Trac setup with all the latest components:
- Trac 0.11.2.1
- TagsPlugin 0.6 r5203
- FullBlogPlugin r5070
comment:2 Changed 16 years ago by
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?
Changed 16 years ago by
Attachment: | linebreak-test-ticket.png added |
---|
A screen shot of how the sample post is rendered in a ticket page.
Changed 16 years ago by
Attachment: | linebreak-test-ticket.html added |
---|
The HTML output for a ticket page.
Changed 16 years ago by
Attachment: | linebreak-test-ticket.2.html added |
---|
The HTML output for a ticket page.
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(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.
A screen shot of how the sample post is rendered in a wiki page.