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:
parent
3c06ae6000
commit
21221dd564
|
@ -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>
|
2009-02-22 Carsten Dominik <carsten.dominik@gmail.com>
|
||||||
|
|
||||||
* org-export-latex.el (org-export-as-latex)
|
* org-export-latex.el (org-export-as-latex)
|
||||||
|
|
|
@ -3554,7 +3554,7 @@ lang=\"%s\" xml:lang=\"%s\">
|
||||||
(insert "<pre class=\"example\">\n"))
|
(insert "<pre class=\"example\">\n"))
|
||||||
(insert (org-html-protect (match-string 3 line)) "\n")
|
(insert (org-html-protect (match-string 3 line)) "\n")
|
||||||
(when (or (not lines)
|
(when (or (not lines)
|
||||||
(not (string-match "^[ \t]*\\(:.*\\)"
|
(not (string-match "^[ \t]*:\\(\\([ \t]\\|$\\)\\(.*\\)\\)"
|
||||||
(car lines))))
|
(car lines))))
|
||||||
(setq infixed nil)
|
(setq infixed nil)
|
||||||
(insert "</pre>\n"))
|
(insert "</pre>\n"))
|
||||||
|
|
Loading…
Reference in New Issue