When a very long line or code or comment, it doesn't wrap inside the . Text is overflowed to other block.

CommentFileSizeAuthor
#2 pre_overflow.patch559 bytessoxofaan

Comments

denislabonkink’s picture

Sorry about the description, didn't suspect that < and > are removed. So, here is the description again.

When a very long line of code or comment, it doesn't wrap inside the <code> tag. Text is overflowed to other block.

soxofaan’s picture

Assigned: Unassigned » soxofaan
Category: bug » feature
Status: Active » Reviewed & tested by the community
StatusFileSize
new559 bytes

This is expected when you use the "pre" container.

From the html specification:

The PRE element tells visual user agents that the enclosed text is "preformatted". When handling preformatted text, visual user agents [...] May disable automatic word wrap.

I think most browsers follow this and disable word wrapping in pre elements.

Enable the "div container" in the GeSHi filter settings if you want word wrapping

Another possibility is adding the CSS rule "overflow: auto;" to the pre container. See attached patch

soxofaan’s picture

Status: Reviewed & tested by the community » Fixed

(by accident) committed:
http://drupal.org/cvs?commit=87916

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.