[mapserver-commits] r9036 - trunk/docs
svn at osgeo.org
svn at osgeo.org
Wed May 20 16:51:54 EDT 2009
Author: gislars
Date: 2009-05-20 16:51:53 -0400 (Wed, 20 May 2009)
New Revision: 9036
Modified:
trunk/docs/labels.py
Log:
added utf-8 encoding
Modified: trunk/docs/labels.py
===================================================================
--- trunk/docs/labels.py 2009-05-20 20:45:47 UTC (rev 9035)
+++ trunk/docs/labels.py 2009-05-20 20:51:53 UTC (rev 9036)
@@ -24,14 +24,14 @@
outfile.write('\t============================ =============================================================================================\n')
outfile.write('\t%s %s\n' % ('Label'.ljust(30), 'Title'))
outfile.write('\t============================ =============================================================================================\n')
-
+
unlabeled = ['genindex','search','modindex']
for docname, items in groupby(labels, key=lambda x: x[1][0]):
for label in items:
if label[0] in unlabeled:
- outfile.write("""\t%s :ref:`%s`\n""" % (label[0].ljust(30), label[0]))
+ outfile.write("""\t%s :ref:`%s`\n""" % ((label[0].ljust(30)).encode("utf-8"), label[0].encode("utf-8")))
else:
- outfile.write("""\t%s :ref:`%s <%s>`\n""" % (label[0].ljust(30), label[1][2],label[0]))
+ outfile.write("""\t%s :ref:`%s <%s>`\n""" %((label[0].ljust(30)).encode("utf-8"),(label[1][2]).encode("utf-8"),(label[0]).encode("utf-8")))
outfile.write('\t============================ =============================================================================================\n')
@@ -42,4 +42,4 @@
def setup(app):
- app.add_builder(CollectLabelsBuilder)
\ No newline at end of file
+ app.add_builder(CollectLabelsBuilder)
More information about the mapserver-commits
mailing list