Vote #78759
完了Diff formatting results empty lines if they contains HTML tags
0%
説明
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