[Python-checkins] r64642 - in doctools/branches/0.4.x: CHANGES sphinx/roles.py
georg.brandl
python-checkins at python.org
Tue Jul 1 23:02:36 CEST 2008
Author: georg.brandl
Date: Tue Jul 1 23:02:35 2008
New Revision: 64642
Log:
#3251: label names are case insensitive.
Modified:
doctools/branches/0.4.x/CHANGES
doctools/branches/0.4.x/sphinx/roles.py
Modified: doctools/branches/0.4.x/CHANGES
==============================================================================
--- doctools/branches/0.4.x/CHANGES (original)
+++ doctools/branches/0.4.x/CHANGES Tue Jul 1 23:02:35 2008
@@ -3,6 +3,9 @@
* Added sub-/superscript node handling to TextBuilder.
+* Label names in references are now case-insensitive, since reST label
+ names are always lowercased.
+
Release 0.4 (Jun 23, 2008)
==========================
Modified: doctools/branches/0.4.x/sphinx/roles.py
==============================================================================
--- doctools/branches/0.4.x/sphinx/roles.py (original)
+++ doctools/branches/0.4.x/sphinx/roles.py Tue Jul 1 23:02:35 2008
@@ -175,6 +175,9 @@
# normalize whitespace in definition terms (if the term reference is
# broken over a line, a newline will be in target)
target = ws_re.sub(' ', target).lower()
+ elif typ == 'ref':
+ # reST label names are always lowercased
+ target = ws_re.sub('', target).lower()
else:
# remove all whitespace to avoid referencing problems
target = ws_re.sub('', target)
More information about the Python-checkins
mailing list