فهرست منبع

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.
Carsten Dominik 16 سال پیش
والد
کامیت
21221dd564
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-exp.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-02-24  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-exp.el (org-export-as-html): Fix problem with closing colone
+	example.
+
 2009-02-22  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-export-latex.el (org-export-as-latex)

+ 1 - 1
lisp/org-exp.el

@@ -3554,7 +3554,7 @@ lang=\"%s\" xml:lang=\"%s\">
 	      (insert "<pre class=\"example\">\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 "</pre>\n"))