Modify ↓
#2558 closed defect (fixed)
Subversion diffs formatted with diff wiki processor are double-escaped
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | normal | Milestone: | 0.9.3 |
Component: | wiki system | Version: | devel |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Subversion diffs in tickets, wiki pages, and attachments rendered using the diff
processor are double-escaped. Examples:
- Ticket: ticket:2432
- Attachment: attachment:ticket:2432:web_ui.py.patch
- Wiki: no current wiki pages use the diff processor, but I confirmed on the SandBox page that it is indeed broken.
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
25 25 this is some text 26 26 27 27 this is more text 28 this is indented text with funky chars: <>"' and funky spacing 28 29 29 30 30 31 hey
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 1 1 This is a test of some stuff. 2 3 Notice that this line has special <>" characters in it. 4 5 This line has some funky spacing.
Attachments (0)
Change History (2)
comment:1 by , 19 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Yeah, just noticed that too.