Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2558 closed defect (fixed)

Subversion diffs formatted with diff wiki processor are double-escaped

Reported by: Bruce Christensen <trac@…> Owned by: Christopher Lenz
Priority: normal Milestone: 0.9.3
Component: wiki system Version: devel
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Subversion diffs in tickets, wiki pages, and attachments rendered using the diff processor are double-escaped. Examples:

For example, this text:

{{{
#!diff
Index: test.txt
===================================================================
--- test.txt      (revision 257)
+++ test.txt      (working copy)
@@ -25,6 +25,7 @@
 this is some text
 
 this is more text
+  this is indented text with funky chars: <>"' and funky           spacing
 
 
 hey
}}}

is rendered as:

  • test.txt

     
    2525this is some text
    2626
    2727this is more text
     28  this is indented text with funky chars: <>"' and funky           spacing
    2829
    2930
    3031hey

Note that changesets shown in TracBrowser don't have this problem. Also, non-Subversion diffs are fine. For example, this text:

{{{
#!diff
--- test1.txt   Wed Jan  4 10:23:48 2006
+++ test2.txt   Wed Jan  4 10:23:38 2006
@@ -1 +1,5 @@
 This is a test of some stuff.
+
+Notice that this line has special <>" characters in it.
+
+    This line has some funky     spacing.
}}}

renders as:

  • .txt

    old new  
    11This is a test of some stuff.
     2
     3Notice that this line has special <>" characters in it.
     4
     5    This line has some funky     spacing.

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 14 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

Yeah, just noticed that too.

comment:2 by Christopher Lenz, 14 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in [2730], [2731].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.