You are here

Help with cleanup joining words together

3 posts / 0 new
Last post
zombieagain
Offline
Donator
Joined: 5 years
Last seen: 4 years
Help with cleanup joining words together

Hello,
first time trying to modify a site ini... The guidatv.sky.it.ini doesn't give me description so I read (most of) the manual and I'm giving it a try to modify it. I'm making good progress, but I have a question on cleanup.
This is a description before cleanup:

<i><b>PICCOLE DONNE</b></i><br><br>Dal celebre romanzo di <b>Louisa M. Alcott</b>, un melodramma al femminile con <b>Winona Ryder</b> e Susan Sarandon. <br>1861: in assenza del padre, impegnato al fronte, le quattro sorelle March, dai caratteri diversissimi, crescono e si affacciano al mondo educate da una madre anticonformista.(n)

and this is after I add the command description.modify {cleanup}:

PICCOLE DONNEDal celebre romanzo di Louisa M. Alcott, un melodramma al femminile con Winona Ryder e Susan Sarandon. 1861: in assenza del padre, impegnato al fronte, le quattro sorelle March, dai caratteri diversissimi, crescono e si affacciano al mondo educate da una madre anticonformista.(n)

Basically the second word (DONNE) gets joined with the third word (Dal).

Any suggestions on how to preserve a space between these two words?

Thanks!

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 15 hours

you can try the function replace: description.modify {replace|</i>| } (or index_description) before cleanup tags line. This way only only the will be replaced with a space, then tags will be cleanup and you should end up with PICCOLE DONNE Dal celebre
More nice look {replace|</i>| - } result: PICCOLE DONNE - Dal celebre
ps
use <mode>m,n</mode> to remove (n) at the end

zombieagain
Offline
Donator
Joined: 5 years
Last seen: 4 years

Thanks!

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl