Edgewall Software
Modify

Opened 16 years ago

Closed 13 years ago

#6363 closed defect (fixed)

Problems viewing wrapped code snippets w/ IE7 and Firefox 2.009

Reported by: jon.c.peterson@… 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 jon.c.peterson@…, 16 years ago

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.

comment:2 by Christian Boos, 16 years ago

Keywords: verify added
Milestone: 0.110.11.1

comment:3 by jon.c.peterson@…, 16 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 Christian Boos, 13 years ago

Keywords: verify removed
Milestone: next-minor-0.12.x0.12.3
Owner: changed from Jonas Borgström to Christian Boos

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

     
    637637   display: none;
    638638 }
    639639 form.printableform { display: block }
     640 pre.wiki { overflow: visible }
     641 :link, :visited { border-bottom: none }
    640642}

comment:5 by Christian Boos, 13 years ago

Milestone: 0.12.30.13
Resolution: fixed
Status: newclosed

Patch applied in r10666.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.