* Curtis L. Olson -- Friday 04 March 2005 17:23:
> Melchior FRANZ wrote:
> >  $ perl -p -i -e 's,^(\t*)(.*alias=")(\.\./)+,"$1$2" . ("../" x 
> > length($1)),e' foo.xml
> 
> I think most FG xml is indented with spaces ... generally one space per 
> level, but sometimes more, sometimes less.

True. I thought you were talking about a file that you are writing. I'm very
much for clean xml files. Keeping the files consistent is in the responsibility
of the author. And the one who commits it to CVS, of course ...

m.


PS: Replacing "\t" by " " is left as an exercise to the user.

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to