summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-05-31 19:06:02 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-05-31 19:06:02 +0200
commit24221723a317a4f3dba2c53b1c426f1c7ff4c783 (patch)
tree910253d00b0d618dfba29c5550e417e64ba43a20
parent7c6323ef0958f717b106e621070403e1fee299b9 (diff)
downloadorg-mode-24221723a317a4f3dba2c53b1c426f1c7ff4c783.tar.gz
org-latex: ensure footnote contents cannot end a list
* lisp/org-latex.el (org-export-latex-preprocess): add `original-indentation' property to footnotes so they cannot possibly end a list by being less indented than the item they belong to.
-rw-r--r--lisp/org-latex.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 764a48d..233e8ca 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -2443,6 +2443,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(add-text-properties (1- (length footnote-rpl))
(length footnote-rpl)
'(org-protected t) footnote-rpl)
+ (put-text-property 0 (length footnote-rpl)
+ 'original-indentation 1000 footnote-rpl)
(if (org-on-heading-p)
(setq footnote-rpl
(concat (org-export-latex-protect-string "\\protect")