The |lignes_longues filter, (since SPIP 1.9), inserts hyphens into words that ar "too long", by inserting breakable spaces into them allowing them to drop to the next physical line (useful, for example, to display URLs in a narrow column).

So, if the #TEXTE of an article contains a link like:

<a href="http://www.spip.net/spip.php?page=recherche&recherche=long_lines">http://www.spip.net/spip.php?page=recherche&recherche=long_lines</a>


<p style="width:30px;">

will display this as


Note that the hyphen maintains the HTML tags; in the example above, all of the link is clickable as can be seen in the HTML source.

By default, this filter cuts off at 70 characters, but you can specify another cut-off length by passing a parameter to the filter, e.g.

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, Nederlands