Fix problem with <pre> of source code inside a paragraph.
This commit is contained in:
parent
db2485cb41
commit
1b655ff4af
|
@ -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.
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue