Browse Source

ox: Internal references are always 10 character long

* lisp/ox.el (org-export-format-reference): Internal references are
  always 10 character long.

This reduces further possible reference clashes with user-defined
labels.
Nicolas Goaziou 9 years ago
parent
commit
9508dc9af2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox.el

+ 1 - 1
lisp/ox.el

@@ -4341,7 +4341,7 @@ of a reference.  See also `org-export-format-reference'."
   "Format REFERENCE into a string.
 REFERENCE is a number representing a reference, as returned by
 `org-export-new-reference', which see."
-  (format "org%x" reference))
+  (format "org%07x" reference))
 
 (defun org-export-get-reference (datum info)
   "Return a unique reference for DATUM, as a string.