|PtoBR

The |PtoBR filter (since SPIP 1.0.3, SPIP 1.0.4, SPIP 1.0.5) transforms any paragraph jumps into simple line feeds, which makes it possible to "tighten up" page formatting, such as within a summary page.
This filter also enables the occasional cancellation of the standardised framing mechanism [1]’s usage of text tags <p> and </p> (since SPIP 2.0)

For example, a #DESCRIPTIF tag which normally returns the following HTML source:

<p><strong>William Shakespeare :</strong></p><p style="color:navy;">né à Stratford-sur-Avon dans une maison sous les tuiles de laquelle était cachée...</p>

will return, once this filter has been applied, as:

<strong>William Shakespeare :</strong>
<br />né à Stratford-sur-Avon dans une maison sous les tuiles de laquelle était cachée...

Footnotes

[1See the section on "Paragraphs" in the article about SPIP 2.0

Author Mark Published : Updated : 26/10/12

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