From 107803c6c3390efde301c05ba60d87983ff1b7d8 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Sun, 15 Mar 2009 12:12:17 +0100 Subject: [PATCH] ASCII export: Improve export of description lists The list bullet is now removed, and the double colon is replaced by a single colon. --- lisp/ChangeLog | 4 ++++ lisp/org-exp.el | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8fd5f3fe4..9e7c19cc7 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-03-15 Carsten Dominik + + * org-exp.el (org-export-as-ascii): Improve export of plain lists. + 2009-03-14 Bastien Guerry * org.el (org-toggle-fixed-width-section): Bug fix: insert a diff --git a/lisp/org-exp.el b/lisp/org-exp.el index e71af04d8..2aa04aae3 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2894,6 +2894,8 @@ underlined headlines. The default is 3." (org-format-table-ascii table-buffer) "\n") "\n"))) (t + (if (string-match "^\\([ \t]*\\)\\([-+*][ \t]+\\)\\(.*?\\)\\( ::\\)" line) + (setq line (replace-match "\\1\\3:" t nil line))) (setq line (org-fix-indentation line org-ascii-current-indentation)) ;; Remove forced line breaks (if (string-match "\\\\\\\\[ \t]*$" line)