Metadata Mechanic - Remove Blank Lines

Started by Darius1968, September 01, 2022, 08:57:20 PM

Previous topic - Next topic

Darius1968

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? 

Mario

#1
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
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook