bibtex-tidy icon indicating copy to clipboard operation
bibtex-tidy copied to clipboard

Bug with commands in fields?

Open renefritze opened this issue 3 years ago • 1 comments

With this input

@misc{TheKey,
   title        = {{The \textsf{Secret}}},                          
}

and these options

bibtex-tidy --curly --space=2 --align=13 --no-escape --no-tidy-comments --no-remove-dupe-fields --no-lowercase --enclosing-braces=title

the online bibtex-tidy outputs

@misc{TheKey,
  title        = {{The \textsfSecret}}
}

I expected no change, but the "inner" curly braces were stripped. Is this a bug or is my expectation wrong?

renefritze avatar Jan 18 '22 10:01 renefritze

Thanks for the report - that does appear to be a bug. It should not be removing the braces.

FlamingTempura avatar Jan 18 '22 14:01 FlamingTempura

Finally got around to fixing this.

Braces that are part of commands will now be maintained in output:

@misc{TheKey,
  title        = {{The \textsf{Secret}}}
}

FlamingTempura avatar Nov 18 '22 20:11 FlamingTempura