On 07/06/15 22:22, Michał Górny wrote: > Dnia 2015-06-07, o godz. 22:16:18 > "Justin Lecher (jlec)" <j...@gentoo.org> napisał(a): > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA512 >> >> On 07/06/15 14:48, Andrew Udvare wrote: >>> On 07/06/15 05:12, Alexis Ballier wrote: >>>> On Sat, 6 Jun 2015 22:00:14 -0400 Mike Gilbert >>>> <flop...@gentoo.org> wrote: >>>> >>>>> Compatibility with sed scripts is not something I care about. >> ... >>> However, I do not disagree an XML parser is better than sed for >>> the purpose. There are plenty of XML pretty printers. >>> >> >> So you guys think I am using sed for this? Really? >> >> Still you need to tell a XML formatter what indention style to use. > > Not exactly. You can write a tool that tries hard to recognize > indentation style and repeat it. Like the one I wrote to replace > <herd/> with <maintainer/> elements. It was pretty good in figuring out > developer fancies, including multiple different indentation levels. >
I am trying to detect what ever they already is for indention. How did you implement this? Justin
signature.asc
Description: OpenPGP digital signature