瀏覽代碼

org-odt.el: Resolve headline links as sec nos only if num:t

* lisp/org-odt.el (org-odt-format-org-link): Resolve links to
headlines as section numbers only if section numbering is on.
Jambunathan K 13 年之前
父節點
當前提交
d3cd3720d5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/org-odt.el

+ 1 - 0
lisp/org-odt.el

@@ -1669,6 +1669,7 @@ ATTR is a string of other attributes of the a element."
        ;; links to headlines
        ((and (string= type "")
 	     (or (not thefile) (string= thefile ""))
+	     (plist-get org-lparse-opt-plist :section-numbers)
 	     (setq sec-frag fragment)
 	     (org-find-text-property-in-string 'org-no-description fragment)
 	     (or (string-match  "\\`sec\\(\\(-[0-9]+\\)+\\)" sec-frag)