Browse Source

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 years ago
parent
commit
d3cd3720d5
1 changed files with 1 additions and 0 deletions
  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
        ;; links to headlines
        ((and (string= type "")
        ((and (string= type "")
 	     (or (not thefile) (string= thefile ""))
 	     (or (not thefile) (string= thefile ""))
+	     (plist-get org-lparse-opt-plist :section-numbers)
 	     (setq sec-frag fragment)
 	     (setq sec-frag fragment)
 	     (org-find-text-property-in-string 'org-no-description fragment)
 	     (org-find-text-property-in-string 'org-no-description fragment)
 	     (or (string-match  "\\`sec\\(\\(-[0-9]+\\)+\\)" sec-frag)
 	     (or (string-match  "\\`sec\\(\\(-[0-9]+\\)+\\)" sec-frag)