photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on September 01, 2022, 08:57:20 PM

Title: Metadata Mechanic - Remove Blank Lines
Post by: Darius1968 on September 01, 2022, 08:57:20 PM
GIVEN:

LINE 2
LINE 3
LINE 4

...Where the 1st line is blank, which I want to remove.  So, that I end up with...
LINE 1
LINE 2
LINE 3


...How would I pull this off in MD Mechanic? 
Title: Re: Metadata Mechanic - Remove Blank Lines
Post by: Mario on September 01, 2022, 09:37:00 PM
Use a variable and replace to replace the empty "line" with nothing? Whatever makes your empty line. CR, LF, CRLF, ...?
Not sure. Never had that problem.

The MDA and variables give you a lot of tools. Maybe it takes some experiments. And maybe not everything is possible.
Maybe replace two consecutive LF or CR or CRLF with one? That depends on how you made the empty lines, only you can know.

Stuff<CRLF>
<CRLF>

More Stuff
Yet more stuff