I am not a pro developer and need a simple solution. I have tried using fart.exe within a Windows Bat file to accomplish this, but having trouble finding the exact lines I need to replace line breaks. In an XML file, here is what I am trying do.
I need to go from this (a few lines in the middle of a larger file):
<meta name="xyz:moreinfohere" content="some content"/>
<meta name="abc:evenmoreinfo" content="more content
and here is where
the problem lies"/>
<meta name="abc:infoagain" content="this is confusing"/>
<meta name="xyz:blahblah" content="please help"/>
to this:
<meta name="xyz:moreinfohere" content="some content"/>
<meta name="abc:evenmoreinfo" content="more content
and here is where
the problem lies"/>
<meta name="abc:infoagain" content="this is confusing"/>
<meta name="xyz:blahblah" content="please help"/>
The data filled in these fields will be variable, and this is a fictitious example. Basically, i am trying to replace the line breaks with the XA code, but only certain lines as you can see. I have managed to use fart.exe to replace all instances of \n\r but i can't figure out how to only do the needed ones. Not every line starts with "meta...". However every line in the files is supposed to end with ">" ...its the only constant/fixed character on every line in the files. Please help! I open to anything that works in a standard Windows Bat file (fart, java, etc.)