Project

General

Profile

Actions

Defect #26708

closed

Diff formatting results empty lines if they contains HTML tags

Defect #26708: Diff formatting results empty lines if they contains HTML tags

Added by Robert Korulczyk over 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
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 1 (0 open — 1 closed)

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

Updated by Robert Korulczyk over 9 years ago Actions #1

Live example:

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

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

Updated by Marius BĂLTEANU about 8 years ago Actions #2

Fixed by the migration to Rouge (#24681).

using CodeRay:

after migration to Rouge:

Updated by Marius BĂLTEANU about 8 years ago Actions #3

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

Also available in: PDF Atom