Page 1 of 1

How to remove empty lines

Posted: Sun Apr 01, 2012 10:50 am
by maxdido
How can I remove several carriage returns or new lines or whitespace (I don't know what it is) that occure before <movie>. see this example:

Code: Select all



<movie>
    <id>tt1423894</id>
    <title>Barney's Version</title>
    <plot></plot>
    <genre></genre>
    <rating></rating>
    <year>2010</year>
    <outline></outline>
    <plot></plot>
    <tagline></tagline>
    <thumb>file:///E:/UMC/Barney's Version[Cover].jpg</thumb>
    <fanart>file:///E:/UMC/Barney's Version[Backdrop].jpg</fanart>
    <watched></watched>
</movie>

Re: How to remove empty lines

Posted: Mon Apr 02, 2012 6:55 pm
by maxdido@gmx.de
Found it myself in another thread.
solution: ^\r\n