org-e-odt.el: Don't rely on buffer positions
They may not be available when element translation is in effect.
This commit is contained in:
parent
b7be665ef3
commit
0e9ec97ed4
|
@ -3413,11 +3413,10 @@ the plist used as a communication channel."
|
||||||
;; item and the item has a checkbox, splice the checkbox and
|
;; item and the item has a checkbox, splice the checkbox and
|
||||||
;; paragraph contents together.
|
;; paragraph contents together.
|
||||||
(when (and (eq (org-element-type parent) 'item)
|
(when (and (eq (org-element-type parent) 'item)
|
||||||
(not (eq (org-element-property :type
|
(not (eq (org-element-property :type
|
||||||
(org-export-get-parent parent))
|
(org-export-get-parent parent))
|
||||||
'descriptive))
|
'descriptive))
|
||||||
(= (org-element-property :begin paragraph)
|
(eq paragraph (car (org-element-contents parent))))
|
||||||
(org-element-property :contents-begin parent)))
|
|
||||||
(setq contents (concat (org-e-odt--checkbox parent) contents)))
|
(setq contents (concat (org-e-odt--checkbox parent) contents)))
|
||||||
(org-e-odt-format-stylized-paragraph style contents)))
|
(org-e-odt-format-stylized-paragraph style contents)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue