Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2006-12-12 16:00:01


Tobias Schwinger wrote:
>>Hmmm... Maybe setting the 'overflow' attribute will work.
>>
>
>
> No, sorry I mixed things up.
>
> Here is the solution: Changing "white-space: pre" to "white-space: pre-wrap" for the affected styles does the trick.
>
> Internet Explorer doesn't support "pre-wrap" but it doesn't matter here because
> a) pre elements have hard-wired "white-space: pre" semantics with this browser
> b) Internet Explorer doesn't have the problem in the first place
>

This solution only works if the text /can/ be broken. So if you the region becomes too small (so that the text can't be broken down any further) the collision still occurs.

Setting "overflow: hidden" for 'pre.literal-block' will hide the text that doesn't fit (which might be prettier, but doesn't really solve the problem). To make long words (e.g. "Files\boost\boost_1_34_0") breakable you'll have to convince your documentation system to inject wbr tags into the text to provide predetermined breaking points (e.g. "Files\<wbr/>boost\<wbr/>boost_1_34_0" can break after every backslash).

Regards,

Tobias


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk