Preserving line breaks for export no longer works

ASCII export always preserves them - no other export format does.
This commit is contained in:
Carsten Dominik 2009-12-09 22:27:38 +01:00
parent facedba057
commit 0776eab890
3 changed files with 4 additions and 4 deletions

View File

@ -8926,7 +8926,7 @@ you can:
H: @r{set the number of headline levels for export}
num: @r{turn on/off section-numbers}
toc: @r{turn on/off table of contents, or set level limit (integer)}
\n: @r{turn on/off line-break-preservation}
\n: @r{turn on/off line-break-preservation (DOES NOT WORK)}
@@: @r{turn on/off quoted HTML tags}
:: @r{turn on/off fixed-width sections}
|: @r{turn on/off tables}

View File

@ -1,5 +1,7 @@
2009-12-09 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-make-header): Remove \obeylines.
* org.el (org-make-link-regexps): Use John Gruber's regexp for
urls.

View File

@ -1027,9 +1027,7 @@ OPT-PLIST is the options plist for current buffer."
(format "\\setcounter{tocdepth}{%s}\n\\tableofcontents\n\\vspace*{1cm}\n"
(min toc (plist-get opt-plist :headline-levels))))
(toc (format "\\setcounter{tocdepth}{%s}\n\\tableofcontents\n\\vspace*{1cm}\n"
(plist-get opt-plist :headline-levels)))))
(when (plist-get opt-plist :preserve-breaks)
"\\obeylines\n"))))
(plist-get opt-plist :headline-levels))))))))
(defun org-export-latex-first-lines (opt-plist &optional beg end)
"Export the first lines before first headline.