Open DmitrySharabin opened 1 month ago
Hey, no the indentation is not seen as containing relevant information so it is not preserved and there would be no simple way of doing that. In many cases, it's not wanted either as the whitespace of many input files can be quite chaotic.
What we should be able to do though is to allow to specify an indentation setting to be used for the export mechanism. That would then not necessarily be the same amount as the indentation on input, but it would produce better looking output.
What that be something you would be interested in, @DmitrySharabin ?
Hey there,
Thank you so much for your quick response.
What we should be able to do though is to allow to specify an indentation setting to be used for the export mechanism.
That would be nice!
What that be something you would be interested in, @DmitrySharabin ?
I am not sure if I'm skilled enough to help here, but I'll try. 🙂
Thank you so much for this tool!
I'm trying to add the support for
.bib
files to Madata, but I'm facing an issue I don't know how to solve.Suppose the source
.bib
file looks like this (mind the indentation):After modifying it and writing back (with
BibLatexExporter().parse()
), I lose the indentation:Is there a way to preserve the formatting of the source file after modifying it and writing back?