Author: mordante
Date: Sun Mar 13 19:59:32 2011
New Revision: 48896

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48896&view=rev
Log:
Some minor tweaks to terrain2wiki.py.

The output of this version is used to generate the current version of
the wiki page [1].

[1] http://wiki.wesnoth.org/TerrainCodeTableWML

Modified:
    trunk/data/tools/terrain2wiki.py

Modified: trunk/data/tools/terrain2wiki.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/terrain2wiki.py?rev=48896&r1=48895&r2=48896&view=diff
==============================================================================
--- trunk/data/tools/terrain2wiki.py (original)
+++ trunk/data/tools/terrain2wiki.py Sun Mar 13 19:59:32 2011
@@ -38,7 +38,7 @@
     data = "\n".join([i for i in data.split("\n") if not i.startswith("#")])
     terrains = re.compile("\[terrain_type\](.*?)\[\/terrain_type\]", 
re.DOTALL).findall(data)
 
-    data = """{| border="1"
+    data = """{{AutogeneratedWML}}{| border="1"
 !name
 !string
 !alias of
@@ -77,7 +77,7 @@
 convert the terrain codes located in terrain.cfg to wiki formatted text.')
     parser.add_argument('-f', '--file', default='data/core/terrain.cfg',
 dest='path', help="The location of the terrain.ctg file.")
-    parser.add_argument('-o', '--output', default='/tmp/TerrainCodesWML',
+    parser.add_argument('-o', '--output', default='/tmp/TerrainCodeTableWML',
 dest='output_path', help="The location of the ouput file.")
     args = parser.parse_args()
 


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

Reply via email to