Ver Fonte

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 há 9 anos atrás
pai
commit
9508dc9af2
1 ficheiros alterados com 1 adições e 1 exclusões
  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.