[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / textwheel / wheels / spip / spip-poesie.yaml
1 --- # callback pour <poesie> !spip.yaml
2
3 -
4 # trim
5 type: all
6 replace: trim
7 is_callback: y
8
9 -
10 # nettoyer les sauts de ligne \r
11 # (semble inutile car deja dans spip.yaml#L6)
12 match: ",\r\n?,S"
13 replace: "\n"
14 -
15 # ligne contenant une espace => ligne contenant un &nbsp;
16 match: "/\n[\s]*\n/Su"
17 replace: "\n&nbsp;\n"
18 -
19 # deux sauts de ligne => div
20 match: "/\n+/"
21 replace: "</div>\n<div>"
22
23 -
24 # entourer avec un blockquote.spip_poesie
25 type: all
26 replace: "<blockquote class=\"spip_poesie\">\n\n<div>$0</div>\n</blockquote>\n\n"