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.
This commit is contained in:
Carsten Dominik 2009-02-24 05:23:55 +01:00
parent 3c06ae6000
commit 21221dd564
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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"))