r4013 - trunk/doxer



Author: timj
Date: 2006-10-22 19:10:32 -0400 (Sun, 22 Oct 2006)
New Revision: 4013

Modified:
   trunk/doxer/ChangeLog
   trunk/doxer/Code2Doxi.py
Log:
Mon Oct 23 01:07:55 2006  Tim Janik  <timj gtk org>

        * Code2Doxi.py: escape commas in urls. 




Modified: trunk/doxer/ChangeLog
===================================================================
--- trunk/doxer/ChangeLog	2006-10-22 20:40:32 UTC (rev 4012)
+++ trunk/doxer/ChangeLog	2006-10-22 23:10:32 UTC (rev 4013)
@@ -1,3 +1,7 @@
+Mon Oct 23 01:07:55 2006  Tim Janik  <timj gtk org>
+
+	* Code2Doxi.py: escape commas in urls. 
+
 Sun Oct  1 13:09:24 2006  Tim Janik  <timj gtk org>
 
 	* Data.py: extended Parameter for default values and const-ness.

Modified: trunk/doxer/Code2Doxi.py
===================================================================
--- trunk/doxer/Code2Doxi.py	2006-10-22 20:40:32 UTC (rev 4012)
+++ trunk/doxer/Code2Doxi.py	2006-10-22 23:10:32 UTC (rev 4013)
@@ -38,6 +38,14 @@
 class CodeMarkupCore:
   def __init__ (self):
     self.index_lookup = None
+  def escape_comma (self, string):
+    s = ''
+    for c in list (string):
+      if c == ',':
+        s += '%2C'
+      else:
+        s += c
+    return s
   def set_index_handler (self, handler):
     self.index_lookup = handler
   def mspace (self, n_spaces = 1):
@@ -665,7 +673,7 @@
         if n == 0:
           print >>fout, '@doxer_row'
         n += 1
-        print >>fout, '@doxer_cell @doxer_uri{' + url + ', ' + name + '}'
+        print >>fout, '@doxer_cell @doxer_uri{' + self.escape_comma (url) + ', ' + name + '}'
         if n == n_columns:
           print >>fout, '@doxer_done'   # close row
           n = 0




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]