Opened 17 years ago
Closed 14 years ago
#6363 closed defect (fixed)
Problems viewing wrapped code snippets w/ IE7 and Firefox 2.009
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | low | Milestone: | 1.0 |
Component: | ticket system | Version: | devel |
Severity: | minor | Keywords: | css |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Using version Trac-0.11dev_r6153-py2.5.egg
When printing code snippets using Code WikiFormatting. Scroll bar appears on printout and the content does not wrap.
Found a css code snippet to fix both IE7 and Firefox http://users.tkk.fi/~tkarvine/pre-wrap-css3-mozilla-opera-ie.html
Other browsers not tested.
Added the following css to trac.css (line 317)
pre.wiki, pre.literal-block{ section
white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */
Attachments (0)
Change History (5)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Keywords: | verify added |
---|---|
Milestone: | 0.11 → 0.11.1 |
comment:3 by , 17 years ago
Another proposed css modification to fix overwrite problem. Appears to be related to overflow being set to auto. Added under @media print section of trac.css
pre.wiki{ overflow:visible }
fixed overwrite problem in IE7 and Firefox 2.009
comment:4 by , 14 years ago
Keywords: | verify removed |
---|---|
Milestone: | next-minor-0.12.x → 0.12.3 |
Owner: | changed from | to
Suggested fix works fine.
On the topic of CSS for printing, there's probably several other things to fix, but the most urgent and obvious seems to be to remove the border-bottom for links:
-
trac/htdocs/css/trac.css
637 637 display: none; 638 638 } 639 639 form.printableform { display: block } 640 pre.wiki { overflow: visible } 641 :link, :visited { border-bottom: none } 640 642 }
comment:5 by , 14 years ago
Milestone: | 0.12.3 → 0.13 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Patch applied in r10666.
The above css works, however, the display of the timeline class prints on top of the code section. This occurs whether using the fix or not when inserting large amounts of code into a comment.