Remove "\\" during ASCII export.

"\\" at the end of a line marks forces line breaks for HTML and LaTeX
export.  ASCII export does preserve lines anyway, but these line break
indicators might still be present and need to be removed.

Reported by Rustom Mody.
This commit is contained in:
Carsten Dominik 2008-11-21 13:16:18 +01:00
parent 59f70c6ba6
commit 94e8fa7ca0
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2008-11-21 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-as-ascii): Remove the "\\" forced
line break indicators.
* org.el (org-ido-completing-read): Remove the "i:" prefix for
ido-completion propts.

View File

@ -2434,6 +2434,9 @@ underlined headlines. The default is 3."
"\n") "\n")))
(t
(setq line (org-fix-indentation line org-ascii-current-indentation))
;; Remove forced line breaks
(if (string-match "\\\\\\\\[ \t]*$" line)
(setq line (replace-match "" t t line)))
(if (and org-export-with-fixed-width
(string-match "^\\([ \t]*\\)\\(:\\)" line))
(setq line (replace-match "\\1" nil nil line)))