ethxmlindent(8)

πŸ“¦ version 12.1.0.1, in centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ NAME ✨

ethxmlindent β€” bestie, this is the XML glow-up tool πŸ’–

Okay so picture this: you feed it well-formed XML as input, it filters out the comments, and then it hands you back an equivalent XML file with uniform indentation. That's it, that's the whole vibe. ✨

Use ethxmlindent to reformat files so they're actually easy to read and review πŸ‘€. You can also use it to reformat a file so it's easy to compare with a diff tool. Slay. πŸŽ€


πŸ¦‹ Syntax πŸ¦‹

ethxmlindent [-t|-k] [-i indent] [ input_file]

πŸ’… Options πŸ’…

  • --help β€” produces the full help text. Like, the whole thing. No cap. πŸ“–
  • -t β€” trims leading and trailing whitespace in tag contents. Bye bye, extra spaces. πŸ’…
  • -k β€” keeps newlines as-is in tags that are purely whitespace and contain newlines. The default behavior is to format that as an empty list instead. 🫢
  • -i indent β€” sets the indentation to use per level. The default is 4. πŸ“
  • input_file β€” specifies the XML file to read. The default is stdin. πŸ“

And that's the whole page, bestie 🧚✨ β€” this one comes to you from the EFSFFCLIRG man page set, copyright Copyright(C) 2020-2024 Intel Corporation, and it's still rocking the ethxmlindent(8) name like the icon it is. Go reformat something pretty. πŸ’œπŸ‘‘

πŸ“¦ where this page comes from