diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c7c1b5885..b7bca61d3 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-09-28 Carsten Dominik + * 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 diff --git a/lisp/org-latex.el b/lisp/org-latex.el index a622324ac..5a45766cc 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -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)))