プロジェクト

全般

プロフィール

Vote #78759

完了

Diff formatting results empty lines if they contains HTML tags

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
99
issue_org_id:
26708
author_id:
113681
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
129
ステータス-->[Closed]

説明

h2. Steps to reproduce:

In issue description write something like (need to remove space in @< /pre>@):


--- a/test.php
+++ b/test.php
@@ -329,7 +329,7 @@

-echo '
'; +echo '
';
< /pre>

h2. Expected result:

Proper diff.

h2. What I get:

!058577fc.png!


journals

Live example:

<pre><code class="diff">
--- a/test.php
+++ b/test.php
@@ -329,7 +329,7 @@

-echo '<div></div>';
+echo '<div id="test"></div>';

</code></pre>
--------------------------------------------------------------------------------
Fixed by the migration to Rouge (#24681).

using CodeRay:
!before.png!

after migration to Rouge:
!after.png!

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,24681,Syntax highlighter: replace CodeRay with Rouge

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

  • カテゴリText formatting_26 にセット
  • 対象バージョン4.0.0_99 にセット

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

いいね!0
いいね!0