Author: mordante
Date: Thu Apr 14 20:39:57 2011
New Revision: 49202

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49202&view=rev
Log:
Update the window_overview 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=49202&r1=49201&r2=49202&view=diff
==============================================================================
--- trunk/utils/wiki_grabber.py (original)
+++ trunk/utils/wiki_grabber.py Thu Apr 14 20:39:57 2011
@@ -268,9 +268,14 @@
 
     def create_window_overview_table(data):
         """Creates a table for all available windows."""
-        #matches a line like
-        # Addon_connect & The dialog to connect to the addon server $
-        regex = re.compile("([A-Za-z]\w*) +& +(.*) +\$")
+
+        regex  = re_record_start
+        regex += re_variable                # 0 window id
+        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