LaTeX export: Fix bug with empty lines in VERSE environment

This commit is contained in:
Carsten Dominik 2009-09-28 20:08:34 +01:00
parent 40940daad2
commit 201517106c
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2009-09-28 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-preprocess): Deal properly with
empty lines in verse environments.
* org.el (org-format-latex-header): Inline fullpage.sty.
* org-footnote.el (org-footnote-create-definition): Reveal context

View File

@ -1661,9 +1661,11 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(org-export-latex-protect-string
(concat "\\hspace*{1cm}" (match-string 2))) t t)
(beginning-of-line 1))
(unless (looking-at ".*?[^ \t\n].*?\\\\\\\\[ \t]*$")
(end-of-line 1)
(insert "\\\\"))
(if (looking-at "[ \t]*$")
(insert "\\vspace*{1em}")
(unless (looking-at ".*?[^ \t\n].*?\\\\\\\\[ \t]*$")
(end-of-line 1)
(insert "\\\\")))
(beginning-of-line 2))
(and (looking-at "[ \t]*ORG-VERSE-END.*")
(org-replace-match-keep-properties "\\end{verse}" t t)))