FlamingTempura / bibtex-tidy

Cleaner and Formatter for BibTeX files
https://flamingtempura.github.io/bibtex-tidy/
MIT License
832 stars 63 forks source link

Bug: `--no-encode-url` still encodes URLs #422

Closed chrisgrieser closed 5 days ago

chrisgrieser commented 7 months ago
cat test.bib | bibtex-tidy --no-encode-urls
@incollection{BlattelMink2021,
  title         = {{Foobar}},
  author        = {foobar},
  url           = {https://doi.org/10.1007/978-3-658-17668-6_5}
}
% becomes
@incollection{BlattelMink2021,
  title         = {{Foobar}},
  author        = {foobar},
  url           = {https://doi.org/10.1007/978-3-658-17668-6\%5F5}
}
FlamingTempura commented 5 days ago

Fixed in v1.14.0 - url should no longer be encoded

jdujava commented 5 days ago

Testing this with v1.14.0, by default the URL is not encoded, but for some reason passing either --encode-urls or --no-encode-urls produces encoded URL.

chrisgrieser commented 5 days ago

can confirm, passing nothing keeps the URL unencoded, while --no-encode-urls results in the URL being encoded, basically the original problem.