When somebody places a long URI in the commentform or in a node textarea, it messes up the page layout. In Internet Explorer this can be fixed by wordwrap in css but for all the other browsers, there is no clean solution. The only thing what can be done is to set the overflow to hidden so the URI won't be visible.

I hope there will come a feature that enables to give the maxsize of a URI or word (for example by using the PHP wordwrap function). -> http://www.php.net/wordwrap

Comments

magico’s picture

Version: 4.7.3 » x.y.z
Component: node system » theme system
Category: bug » feature

With the theme switch capability, it's very dificult to validate what would be the max lenght for some text within a theme.

This is a theme problem, and can be discussed further. Anyway, this is not a bug.

maastrix’s picture

well, it would be nice if there would be like any limit on that.. so you can adjust it to your own wishes. Now it's just simply impossible to stop them ruining your layout..

catch’s picture

Status: Active » Closed (duplicate)

This module deals with the issue.

http://drupal.org/node/24027

htmlwrap
This is a simple filter module which wraps input by breaking long words and preventing them from damaging your layout.