forked from mirrors/org-mode
org-inlinetask: fix HTML export when not clearly defined as a paragraph
* lisp/org-inlinetask.el (org-inlinetask-export-handler): make sure the task starts a paragraph or the HTML exporter will produce an incorrect output.
This commit is contained in:
parent
aab16ffdf4
commit
1b3798ea07
|
@ -372,6 +372,11 @@ Either remove headline and meta data, or do special formatting."
|
||||||
(eval (append '(format format-str)
|
(eval (append '(format format-str)
|
||||||
(mapcar nil-to-str tokens)))
|
(mapcar nil-to-str tokens)))
|
||||||
'(original-indentation 1000))))
|
'(original-indentation 1000))))
|
||||||
|
;; Ensure task starts a new paragraph.
|
||||||
|
(unless (or (bobp)
|
||||||
|
(save-excursion (forward-line -1)
|
||||||
|
(looking-at "[ \t]*$")))
|
||||||
|
(insert "\n"))
|
||||||
(insert export-str)
|
(insert export-str)
|
||||||
(unless (bolp) (insert "\n")))))))))
|
(unless (bolp) (insert "\n")))))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue