Project

General

Profile

Actions

Defect #26708

closed

Diff formatting results empty lines if they contains HTML tags

Added by Robert Korulczyk over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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:


Files

058577fc.png (3.25 KB) 058577fc.png Robert Korulczyk, 2017-08-16 22:44
before.png (64.5 KB) before.png Marius BĂLTEANU, 2018-09-29 23:52
after.png (76.5 KB) after.png Marius BĂLTEANU, 2018-09-29 23:52

Related issues

Related to Redmine - Feature #24681: Syntax highlighter: replace CodeRay with RougeClosedJean-Philippe Lang

Actions
Actions #1

Updated by Robert Korulczyk over 7 years ago

Live example:

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

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

Actions #2

Updated by Marius BĂLTEANU about 6 years ago

Fixed by the migration to Rouge (#24681).

using CodeRay:

after migration to Rouge:

Actions #3

Updated by Marius BĂLTEANU about 6 years ago

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

Also available in: Atom PDF