Rev 4158 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
397 | bpr | 1 | !if $wims_read_parm!=slib_header |
2 | !goto proc |
||
3 | !endif |
||
4 | slib_title=Replace white spaces |
||
5 | slib_parms=2\ |
||
6 | ,subst\ |
||
7 | ,joker |
||
8 | ,text |
||
9 | slib_author=Bernadette PERRIN-RIOU |
||
10 | slib_out= text where white spaces are replaced by subst |
||
11 | |||
12 | slib_comment=the double white spaces are first suppressed with one whitespace\ |
||
13 | before and after the joker. Are also suppressed the white spaces before or after\ |
||
14 | the tag < or > |
||
15 | slib_example= ??@__??,??_??,Je mange ??_?? une pomme |
||
16 | |||
17 | !exit |
||
18 | |||
19 | :proc |
||
20 | slib_out= !item 3 to -1 of $wims_read_parm |
||
21 | !distribute items $wims_read_parm into slib_subst,slib_joker |
||
22 | |||
23 | |||
24 | slib_out=!singlespace $slib_out |
||
25 | slib_out=!trim $slib_out |
||
26 | slib_out=!replace internal ,$ $ by , in $slib_out |
||
27 | slib_out=!replace internal >$ $ by > in $slib_out |
||
28 | slib_out=!replace internal $ $< by < in $slib_out |
||
29 | slib_out=!replace internal .$ $ by . in $slib_out |
||
30 | slib_out=!replace internal $ $slib_joker by $slib_joker in $slib_out |
||
31 | slib_out=!replace internal $slib_joker$ $ by $slib_joker in $slib_out |
||
32 | slib_out=!replace internal $slib_joker$ $ by $slib_joker in $slib_out |
||
33 | slib_out=!replace internal $ $slib_joker by $slib_joker in $slib_out |
||
34 | slib_out=!replace internal $ $ by $slib_subst in $slib_out |