From 94e8fa7ca0a37d3eb05c6e85dcf1d441c5db0f90 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 21 Nov 2008 13:16:18 +0100 Subject: [PATCH] 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. --- lisp/ChangeLog | 3 +++ lisp/org-exp.el | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 44e5be7bb..9db5879f2 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-11-21 Carsten Dominik + * 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. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index e7ca2b9e9..8d43f8344 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -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)))