]> git.donarmstrong.com Git - org-ref.git/blobdiff - org-ref.el
double dash to single dash in html
[org-ref.git] / org-ref.el
index 0b86ed0156fd8d76572fdb2ffdf160625cc2df0b..784aa76cc4ccf8956ae46f003cc07a0a0e525a7f 100644 (file)
@@ -552,6 +552,8 @@ Format according to the type in `org-ref-bibliography-entry-format'."
     (setq output (replace-regexp-in-string "()" "" output))
     ;; get rid of empty link and doi
     (setq output (replace-regexp-in-string " <a href=\"\">link</a>\\." "" output))
+    ;; change double dash to single dash
+    (setq output (replace-regexp-in-string "--" "-" output))
     (setq output (replace-regexp-in-string " <a href=\"http://dx\\.doi\\.org/\">doi</a>\\." "" output))
     (format "<li><a id=\"%s\">[%s] %s</a></li>"
            key key output)))