Browse Source

Preserving line breaks for export no longer works

ASCII export always preserves them - no other export format does.
Carsten Dominik 15 years ago
parent
commit
0776eab890
3 changed files with 4 additions and 4 deletions
  1. 1 1
      doc/org.texi
  2. 2 0
      lisp/ChangeLog
  3. 1 3
      lisp/org-latex.el

+ 1 - 1
doc/org.texi

@@ -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}

+ 2 - 0
lisp/ChangeLog

@@ -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.
 

+ 1 - 3
lisp/org-latex.el

@@ -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.