git.iko.soy/typeable/pandoc
on master help sign in
Citeproc BibTeX parser: revert change in getRawField...

which was made (for reasons forgotten) when transferring this code from pandoc-citeproc. The change led to `--` in URLs being interpreted as en-dashes, which is unwanted. Closes #6874.

commitfec8223d3a6979f675513300b2211c6235b8bccd authorJohn MacFarlane <jgm@berkeley.edu> dateSat 21 Nov 2020, 12:06 (6 years ago) parent56ceaf4
1 file changed+5−6
src/Text/Pandoc/Citeproc/BibTeX.hs+5−6
src/Text/Pandoc/Citeproc/BibTeX.hs+5−6
@@ -822,12 +822,11 @@ getOldDate prefix = do
822822 , dateLiteral = literal }
823823
824824getRawField :: Text -> Bib Text
825−getRawField f =
826− (stringify <$> getField f)
827− <|> do fs <- asks fields
828− case Map.lookup f fs of
829− Just x -> return x
830− Nothing -> notFound f
825+getRawField f = do
826+ fs <- asks fields
827+ case Map.lookup f fs of
828+ Just x -> return x
829+ Nothing -> notFound f
831830
832831getLiteralList :: Text -> Bib [Inlines]
833832getLiteralList f = do