Defect #30099
Multiple blank lines in pre tags are not preserved in Textile
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Text formatting | |||
Target version: | Candidate for next major release | |||
Resolution: | Affected version: |
Description
Line breaks should be rendered intact in pre blocks but consecutive line breaks are not rendered in Textile. It works as expected in Markdown.
Input:
Expected:
Actual:
Related issues
Associated revisions
Multiple blank lines in pre tags are not preserved in Textile (#30099).
Patch by Takenori TAKAKI.
History
#1
Updated by Takenori TAKAKI almost 4 years ago
- File 30099.patch
added
I think that it is possible to solve the problem by swapping the order of 'escape pre content' and 'clean up white space' in RedCloth#to_html.
I made a patch and attach it.
#2
Updated by Go MAEDA almost 4 years ago
- Target version set to 4.1.0
Setting the target version to 4.1.0.
#3
Updated by Go MAEDA almost 4 years ago
- Subject changed from Consecutive line breaks in a pre element are not rendered in Textile to Multiple blank lines in pre tags are not preserved in Textile
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch. Thank you for fixing this issue.
#4
Updated by Go MAEDA almost 4 years ago
- Related to Defect #30987: Unnecessary empty lines are displayed when syntax highlighting added
#5
Updated by Go MAEDA almost 4 years ago
- Status changed from Closed to Reopened
#6
Updated by Go MAEDA almost 4 years ago
- Status changed from Reopened to New
- Target version deleted (
4.1.0) - Resolution deleted (
Fixed)
#7
Updated by Takenori TAKAKI almost 4 years ago
- File 30099-fixed-30987.patch
added
#8
Updated by Go MAEDA almost 4 years ago
- Target version set to Candidate for next major release
#9
Updated by Go MAEDA almost 3 years ago
- Target version changed from Candidate for next major release to 4.2.0
Setting the target version to 4.2.0.
#10
Updated by Marius BALTEANU almost 2 years ago
- Target version changed from 4.2.0 to 5.0.0
#11
Updated by Marius BALTEANU 11 months ago
- Target version changed from 5.0.0 to Candidate for next major release