Browse Source

ox-bibtex: Fix bibliography location in HTML

* contrib/lisp/ox-bibtex.el (org-bibtex-process-bib-files): Fix
  insertion location of bibliography in HTML export.

Reported-by: gongzhitaao <zhitaao.gong@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/104117>
Kyle Meyer 5 years ago
parent
commit
ba5e1be148
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contrib/lisp/ox-bibtex.el

+ 1 - 0
contrib/lisp/ox-bibtex.el

@@ -248,6 +248,7 @@ Return new parse tree."
 		(insert (format "<div id=\"bibliography\">\n<h2>%s</h2>\n"
 				(org-export-translate "References" :html info)))
 		(insert-file-contents (concat out-file ".html"))
+		(goto-char (point-max))
 		(insert "\n</div>"))
 	       ((org-export-derived-backend-p backend 'ascii)
 		;; convert HTML references to text w/pandoc