Vote #79679
未完了Multiple blank lines in pre tags are not preserved in Textile
0%
説明
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:
!{width: 300px; border: 1px solid #ccc;}.screenshot-input@2x.png!
Expected:
!{width: 300px; border: 1px solid #ccc;}.screenshot-expected@2x.png!
Actual:
!{width: 300px; border: 1px solid #ccc;}.screenshot-actual@2x.png!
journals
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.
--------------------------------------------------------------------------------
Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for fixing this issue.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This patch causes a problem reported as #30987.
I think r17891 should be reverted.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Go MAEDA wrote:
> This patch causes a problem reported as #30987.
>
> I think r17891 should be reverted.
Sorry for the problem reported in # 30987.
I made another patch to fix this problem.
I hope it will be improvement for Redmine.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,30987,Unnecessary empty lines are displayed when syntax highlighting
Admin Redmine さんが約2年前に更新
- カテゴリ を Text formatting_26 にセット
- 対象バージョン を Candidate for next major release_32 にセット