0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-16 03:16:28 +00:00

Fix problem with <pre> of source code inside a paragraph.

This commit is contained in:
Carsten Dominik 2008-12-19 12:46:46 +01:00
parent db2485cb41
commit 1b655ff4af
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,8 @@
* org-exp.el (org-export-html-format-image): Add the / to the end
of the <img> tag.
(org-export-format-source-code): Surround example by empty lines,
to make sure it will not be inside a paragraph.
* org.el (org-ido-switchb): New function.

View file

@ -2260,9 +2260,9 @@ backends, it converts the segment into an EXAMPLE segment."
(point-min) (point-max)))))
(if (string-match "<pre\\([^>]*\\)>\n?" htmltext)
(setq htmltext (replace-match
(format "<pre class=\"src src-%s\">" lang)
(format "<pre class=\"src src-%s\">\n" lang)
t t htmltext)))
(concat "#+BEGIN_HTML\n" htmltext "\n#+END_HTML\n"))))
(concat "\n#+BEGIN_HTML\n" htmltext "\n#+END_HTML\n\n"))))
(t
;; This is not HTML, so just make it an example.
(when (equal lang "org")