changeset 2285:41b2a3652b35

Pretty print XMLs in place.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Thu, 15 Nov 2018 14:18:37 +0200
parents 72b8dfbe3f82
children e920310c8842
files prettyprint.rst
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prettyprint.rst	Wed Nov 14 16:15:18 2018 +0200
+++ b/prettyprint.rst	Thu Nov 15 14:18:37 2018 +0200
@@ -48,7 +48,11 @@
 
   $ xmllint --format file.xml
 
-or in Emacs::
+Pretty print XMLs in place::
+
+  for f in *.xml; do xmllint -o $f --format $f; done
+
+In Emacs::
 
   : C-x h C-u M-| xmllint --format - <RET>