Browse Source

ASCII export: Improve export of description lists

The list bullet is now removed, and the double colon is replaced by a
single colon.
Carsten Dominik 16 years ago
parent
commit
107803c6c3
2 changed files with 6 additions and 0 deletions
  1. 4 0
      lisp/ChangeLog
  2. 2 0
      lisp/org-exp.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2009-03-15  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-exp.el (org-export-as-ascii): Improve export of plain lists.
+
 2009-03-14  Bastien Guerry  <bzg@altern.org>
 
 	* org.el (org-toggle-fixed-width-section): Bug fix: insert a

+ 2 - 0
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)