From 21221dd564c09220f6b919fe25d23fe8302cf4ea Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 24 Feb 2009 05:23:55 +0100 Subject: [PATCH] Export: Fix bug with ending colon example There was a bug that would not close a colon example properly if the line after the example would not have the required space after the colon. --- lisp/ChangeLog | 5 +++++ lisp/org-exp.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1aa8e4944..c837af209 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-02-24 Carsten Dominik + + * org-exp.el (org-export-as-html): Fix problem with closing colone + example. + 2009-02-22 Carsten Dominik * org-export-latex.el (org-export-as-latex) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 0cb98b1e6..8917b9b3e 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -3554,7 +3554,7 @@ lang=\"%s\" xml:lang=\"%s\"> (insert "
\n"))
 	    (insert (org-html-protect (match-string 3 line)) "\n")
 	    (when (or (not lines)
-		      (not (string-match "^[ \t]*\\(:.*\\)"
+		      (not (string-match "^[ \t]*:\\(\\([ \t]\\|$\\)\\(.*\\)\\)"
 					 (car lines))))
 	      (setq infixed nil)
 	      (insert "
\n"))