I am working on an Action right now that heavily replaces elements using the
fwfindAll(child tag)
fwAddEnclosing
fwAddRawOpt(child tag fwFindContent)
fwDelete
technique. The only issue I have with the resulting code is the islands of whitespace left behind where each former child element was in the source. Without doing something awful like a replace() regex, are there any methods to vacuum up this extra space in the process? It would be lovely if there was a fwDeleteOpt that would remove the trailing line-break along with the element.
Okay, further testing has shown that the culprit is fwMove, not fwDelete. If you fwMove something, a blank line is left behind where the original was. Any way to get rid of that?
Thanks,
Walter
On Jun 11, 2012, at 11:36 AM, Walter Lee Davis wrote:
I am working on an Action right now that heavily replaces elements using the
fwfindAll(child tag)
fwAddEnclosing
fwAddRawOpt(child tag fwFindContent)
fwDelete
technique. The only issue I have with the resulting code is the islands of whitespace left behind where each former child element was in the source. Without doing something awful like a replace() regex, are there any methods to vacuum up this extra space in the process? It would be lovely if there was a fwDeleteOpt that would remove the trailing line-break along with the element.