|
@@ -843,13 +843,14 @@ lang=\"%s\" xml:lang=\"%s\">
|
|
|
|
|
|
;; Protected HTML
|
|
|
(when (get-text-property 0 'org-protected line)
|
|
|
- (let (par)
|
|
|
+ (let (par (ind (get-text-property 0 'original-indentation line)))
|
|
|
(when (re-search-backward
|
|
|
"\\(<p>\\)\\([ \t\r\n]*\\)\\=" (- (point) 100) t)
|
|
|
(setq par (match-string 1))
|
|
|
(replace-match "\\2\n"))
|
|
|
(insert line "\n")
|
|
|
(while (and lines
|
|
|
+ (or (not ind) (equal ind (get-text-property 0 'original-indentation (car lines))))
|
|
|
(or (= (length (car lines)) 0)
|
|
|
(get-text-property 0 'org-protected (car lines))))
|
|
|
(insert (pop lines) "\n"))
|
|
@@ -1873,7 +1874,8 @@ If there are links in the string, don't modify these."
|
|
|
(defvar local-list-type)
|
|
|
(defun org-export-html-close-lists-maybe (line)
|
|
|
(let ((ind (or (get-text-property 0 'original-indentation line)
|
|
|
- (org-get-indentation line)))
|
|
|
+ (and (string-match "\\S-" line)
|
|
|
+ (org-get-indentation line))))
|
|
|
didclose)
|
|
|
(when ind
|
|
|
(while (and in-local-list
|