Author: mordante
Date: Thu Apr 14 20:40:05 2011
New Revision: 49203

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49203&view=rev
Log:
Update the variable_types syntax.

This change has no changes to the output.

Modified:
    trunk/utils/wiki_grabber.py

Modified: trunk/utils/wiki_grabber.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/wiki_grabber.py?rev=49203&r1=49202&r2=49203&view=diff
==============================================================================
--- trunk/utils/wiki_grabber.py (original)
+++ trunk/utils/wiki_grabber.py Thu Apr 14 20:40:05 2011
@@ -219,10 +219,13 @@
     def create_variable_types_table(data):
         """Creates a table for the variable types."""
 
-        #matches a line like
-        # int &                            Signed number (whole
-        # numbers). $
-        regex = re.compile("([A-Za-z]\w*) +& +(.*) +\$")
+        regex  = re_record_start
+        regex += re_variable           # 0 variable type
+        regex += re_field_separator
+        regex += re_string             # 1 description
+        regex += re_record_end
+
+        regex = re.compile(regex, re.DOTALL | re.MULTILINE)
         res = regex.findall(data)
 
         if is_empty(res, data):


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to