Removing line-breaks from code after fwDelete()?

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.

Thanks,

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Thanks,

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options