Change underscores to hyphens in section labels
commit438536f6157794101ce0957e39cad6bf70580751
authorNick Dokos <nick@dokosmarshall.org>
Thu, 19 May 2011 00:58:40 +0000 (19 00:58 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 24 May 2011 11:12:16 +0000 (24 13:12 +0200)
treee3864476c1dab80b91262ee99d25c57d2d7e0a6f
parentb91cbd95e79909e5f0eee92f3e54f814573ab35a
Change underscores to hyphens in section labels

* lisp/org-exp.el (org-export-define-heading-targets): Use dash instead
of underscore to make labels valid.

Currently, the section number (a string of the form "X.Y.Z") is used
to manufacture a section label of the form sec-X_Y_Z. Underscores are
overloaded however, both in org and in LaTeX, and cause conflicts with
some packages.  This patch changes underscores to hyphens in section
labels.

TINYCHANGE
lisp/org-exp.el