Melk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I've created a find/replace script that works successfully by finding <TList.Bullet><TList.Item>sometext</TList.Item></TList.Bullet> and replacing it with <ul><li>sometext</li></ul>.
See code excerpt below:
my %findReplaceH = (However, in the output, I'm now getting blank spaces between tags, such as <ul> space <li> and </li> space </ul>.
Can I add something to this line in the script, q[<TList.Bullet>]=>q[<ul>], so the blank space will no longer appear after <ul>? Or, do I need to do the find/replace, and then remove the blank space?
Thanks for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove blank space during find/replace
by jethro (Monsignor) on Nov 27, 2009 at 13:46 UTC | |
|
Re: Remove blank space during find/replace
by BioLion (Curate) on Nov 27, 2009 at 14:14 UTC | |
by Melk (Initiate) on Nov 27, 2009 at 15:45 UTC | |
by cdarke (Prior) on Nov 27, 2009 at 16:51 UTC | |
|
Re: Remove blank space during find/replace
by cdarke (Prior) on Nov 27, 2009 at 14:12 UTC | |
|
Re: Remove blank space during find/replace
by Anonymous Monk on Nov 27, 2009 at 13:38 UTC |