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.
This commit is contained in:
Nicolas Goaziou 2016-04-26 21:04:41 +02:00
parent 1daac70fc5
commit 9508dc9af2
1 changed files with 1 additions and 1 deletions

View File

@ -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.