xmlformat is a configurable formatter (or "pretty-printer") for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis. It's useful e.g. for applying code styles to the guide XML Gentoo documentation.
Created attachment 32305 [details] xmlformat-1.03.ebuild
Created attachment 32306 [details] LICENSE Someone with more knowledge of licenses than me should have a look at it.
Thanks, added to CVS. Lisence file needs to be added in this case. Also, I remove perl USE flag from your ebuild because dev-lang/perl is in the system profile so everyone must have at least one version of perl while you need to install ruby manually (after that ruby USE flag is automatically turned on, so if you have both perl and ruby, you will get /usr/bin/xmlformat.rb linked to /usr/bin/xmlformat unless you explicitly disable ruby USE flag). This utility is quite useful for me (I used to use htmltidy to format XML files, but it's not so handy), thanks again ;)