プロジェクト

全般

プロフィール

Vote #79679

未完了

Multiple blank lines in pre tags are not preserved in Textile

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
32
issue_org_id:
30099
author_id:
332
assigned_to_id:
332
comments:
11
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0