1
JMorris
Minor Print View Bug
  • 2004/12/12 16:31

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


If the artical/post you wish to print contains content contained in a "[code]" tag, the content does not wrap in print preview.

Resized Image

Certainly not a big deal, just anoying. I was thinking that the overflow ore white-space classes in css might solve it, but I couldn't get it to render a printer-friendly pages. Perhaps one of our resident CSS gurus might have a solution.

2
ackbarr
Re: Minor Print View Bug

it doesn't wrap because of the use of the <pre> tag.
You could try adding the following css to the printable page (untested):

le="color: #000000"><?php .xoopsCode pre {white-space: normal}

3
JMorris
Re: Minor Print View Bug
  • 2004/12/12 17:04

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Yeah, I saw the pre tags in the code when I inspected it.

I copied the source code over into a blank html doc and recreated the layout. Then I used several combinations of the overflow class and the with-space class. I wasn't able to get the text to wrap correctly. Overflow just didn't work without scroll bars, and with-space made the text very hard to read.

Um, I reported it because I couldn't print out an article from *this* site.

Thanks Akbar.

4
ackbarr
Re: Minor Print View Bug

hmm while the white-space declaration did force the pre tag to be wrapped - it rendered the code virtually unreadable. There is a bigger problem with the layout of that page - since the width is fixed at 650px any content that would be wider than 650px (images, code blocks, etc) would cause the same issue.

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits