Skip to content

Preserve the formatting of the source file on exporting #132

@DmitrySharabin

Description

@DmitrySharabin

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):

@article{connell2013content,
  title={Content management systems: trends in academic libraries},
  author={Connell, Ruth Sara},
  journal={Information Technology and Libraries (Online)},
  volume={32},
  number={2},
  pages={42},
  year={2013},
  publisher={American Library Association}
}

After modifying it and writing back (with BibLatexExporter().parse()), I lose the indentation:

@article{connell2013content,
title={Content management systems: trends in academic libraries},
author={Connell, Ruth Sara},
journal={Information Technology and Libraries (Online)},
volume={32},
number={2},
pages={42},
year={2013},
publisher={American Library Association}
}

Is there a way to preserve the formatting of the source file after modifying it and writing back?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions