Opened 20 years ago
Closed 19 years ago
#2213 closed defect (worksforme)
#!diff preview in wiki hides previous line
| Reported by: | anonymous | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.9b2 |
| Severity: | normal | Keywords: | iexplorer |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Rendering Wiki Preview with #!diff from IE6(WinXP), diff outputs hide previous line. Firefox 1.0.7 does not have this problem.
= header 1 =
this is content1.
== header 2 ==
this is content2.
{{{
#!diff
... some unified diff
}}}
Preview at wiki, "this is content2." overlapped diff output. After submit this, "this is content2." line can see even if I saw this page by IE6.
Attachments (1)
Change History (7)
comment:1 by , 19 years ago
| Keywords: | iexplorer needinfo added |
|---|
comment:2 by , 19 years ago
header 1
this is content1.
header 2
this is content2.
... some unified diff
comment:3 by , 19 years ago
header 1
this is content1.
header 2
this is content2.
-
trac/ticket/web_ui.py
461 461 ticket = ctx.shortname() + ': ' 462 462 if status == 'closed': 463 463 ticket = tag.span(ticket, style="text-decoration: line-through") 464 yield (ctx.resource_href(), ticket + ctx.summary(), 464 yield (ctx.resource_href(), 465 ticket + ctx.format_summary(summary, status), 465 466 datetime.fromtimestamp(ts, utc), author, 466 467 shorten_result(desc, terms))
comment:4 by , 19 years ago
| Keywords: | needinfo removed |
|---|---|
| Resolution: | → worksforme |
| Status: | new → closed |
Well, whatever that error was, it seems to be working now.
comment:5 by , 19 years ago
| Resolution: | worksforme |
|---|---|
| Status: | closed → reopened |
I tested this at SandBox on this server, here is test code.
= header 1 =
this is content1.
== header 2 ==
this is content2.
{{{
#!diff
--- /trunk/trac/htdocs/js/expand_dir.js (revision 5338)
+++ /trunk/trac/htdocs/js/expand_dir.js (revision 5346)
@@ -39,5 +39,5 @@
// rows to be removed when collapsing that folder
var folderid = "f" + counter++;
- td.addClass(folderid);
+ td.addClass(folderid).addClass("expanded");
var ancestor_folderids = $.grep(tr.attr("class").split(" "),
function(c) { return c.match(/^f\d+$/)});
}}}
- View this page in Windows IE6.
- Select & copy above code, then press Ctrl+C.
- Click here → [SandBox].
- Click [Edit this page] button.
- Select all existing wiki code, then press Ctrl+V.
- Click [Preview] button. "Header 2" and "this is content2." are hidden by diff table.
by , 19 years ago
| Attachment: | Panorama2.png.uue added |
|---|
Difference between Windows Firefox 2 and Windows IE 6
comment:6 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
Well, I just tried it myself and was unable to reproduce it anywhere. It's possible that when you tried it in SandBox, some invalid wiki code somewhere (and there is a lot of invalid stuff on that page) might have messed things up. But there doesn't seem to be a problem here.



Does this only happen for the preview, but not the normal saved page rendering?