Author: mordante
Date: Sat Jul 30 12:42:55 2011
New Revision: 50493

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50493&view=rev
Log:
Add fix for empty last field for the wiki grabber.

Whether or not the last field can be empty is a property of the field
and not of the record terminator.

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=50493&r1=50492&r2=50493&view=diff
==============================================================================
--- trunk/utils/wiki_grabber.py (original)
+++ trunk/utils/wiki_grabber.py Sat Jul 30 12:42:55 2011
@@ -81,7 +81,8 @@
     # The solution is to make the whitespace optional and assert the
     # character before the ampersand is whitespace.
     re_field_separator = '\s*(?:(?<=\s))&\s+'
-    re_record_end = '\s+\$$'
+    # Same issue as with the re_field_separator but then with '...foo & $'
+    re_record_end = '\s*(?:(?<=\s))\$$'
 
     re_variable = '([a-zA-Z]\w*)'
     re_string = '(.+?)'


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

Reply via email to