Defect #26708

Diff formatting results empty lines if they contains HTML tags

Added by Robert Korulczyk over 1 year ago. Updated 2 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:4.0.0
Resolution:Fixed Affected version:3.3.4

Description

Steps to reproduce:

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

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

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

</code>< /pre>

Expected result:

Proper diff.

What I get:

058577fc.png (3.25 KB) Robert Korulczyk, 2017-08-16 22:44

before.png (64.5 KB) Marius BALTEANU, 2018-09-29 23:52

after.png (76.5 KB) Marius BALTEANU, 2018-09-29 23:52


Related issues

Related to Redmine - Feature #24681: Syntax highlighter: replace CodeRay with Rouge Closed

History

#1 Updated by Robert Korulczyk over 1 year ago

Live example:

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

-
+

#2 Updated by Marius BALTEANU 2 months ago

  • File after.png added
  • File before.png added
  • Status changed from New to Closed
  • Target version set to 4.0.0
  • Resolution set to Fixed

Fixed by the migration to Rouge (#24681).

using CodeRay:

after migration to Rouge:

#3 Updated by Marius BALTEANU 2 months ago

  • Related to Feature #24681: Syntax highlighter: replace CodeRay with Rouge added

Also available in: Atom PDF