[racket] Reading bibtex files

From: Danny Yoo (dyoo at hashcollision.org)
Date: Mon May 21 11:42:18 EDT 2012

I think there's a bug in the library.  There appears to be a missing
call to (slurp-whitespace ip) in the parsing library.  I'll send a bug
report and a patch to the Racket developers.  A diff follows below for
those who like looking at patch files.  :)



################################################################
kui ~/local/racket/collects/scriblib $ git diff bibtex.rkt
diff --git a/collects/scriblib/bibtex.rkt b/collects/scriblib/bibtex.rkt
index 11d5636..c826187 100644
--- a/collects/scriblib/bibtex.rkt
+++ b/collects/scriblib/bibtex.rkt
@@ -81,6 +81,7 @@
              [#\=
               (slurp-whitespace ip)
               (define aval (read-value ip))
+              (slurp-whitespace ip)
               (match (read-char ip)
                 [#\,
                  (hash-set (loop) atag aval)]

Posted on the users mailing list.