1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

Insert a newline character before <\li> when exporting lists

* lisp/org-html.el (org-html-export-list-line): insert a newline
  character before ending an item, as anchor could be on a line
  going to be deleted, like a drawer ending string.
* lisp/org-list.el (org-list-to-html): same.
This commit is contained in:
Nicolas Goaziou 2011-02-02 17:57:59 +01:00
parent 2de0a87f7d
commit b43ad47ad1
2 changed files with 2 additions and 2 deletions

View File

@ -2427,7 +2427,7 @@ the alist of previous items."
;; Ending for every item
(org-close-li type)
;; We're ending last item of the list: end list.
(when lastp (insert (format "</%sl>\n" type)))))
(when lastp (insert (format "\n</%sl>\n" type)))))
(funcall get-closings pos))
(cond
;; At an item: insert appropriate tags in export buffer.

View File

@ -2942,7 +2942,7 @@ with overruling parameters for `org-list-to-generic'."
:dstart "<dl>" :dend "</dl>"
:dtstart "<dt>" :dtend "</dt>\n"
:ddstart "<dd>" :ddend "</dd>"
:istart "<li>" :iend "</li>"
:istart "<li>" :iend "\n</li>"
:icount (format "<li value=\"%s\">" counter)
:isep "\n" :lsep "\n" :csep "\n"
:cbon "<code>[X]</code>" :cboff "<code>[ ]</code>")