benibela / xidel

Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
http://www.videlibri.de/xidel.html
GNU General Public License v3.0
674 stars 42 forks source link

--output-node-indent that takes a value? #100

Open IgorEisberg opened 1 year ago

IgorEisberg commented 1 year ago

Hi there. Thank you for the great tool. I'd like to refactor the indentation in the output file, but looking at the source, looks like --output-node-indent is hardcoded to 2 spaces, while the standard in the files I'm modifying is 4 spaces. Is it possible to make it take a value (optional with default being 2?), e.g. --output-node-indent=[int], that would change the number of spaces being written?