Escape the pipe-symbol in the wiki uploader.

Fixes the display off terrains with a pipe-symbol in the wiki.

Fixes bug #19678.
This commit is contained in:
Mark de Wever 2012-04-30 20:29:52 +00:00
parent ccae9a5fd8
commit 7efcde580f
2 changed files with 2 additions and 1 deletions

View file

@ -258,6 +258,7 @@ Version 1.11.0-svn:
crashing.
* Fixed bug #19658: In replays, units sometimes refresh movement when it is not their turn
* Added: Enabled BREAKPOINT and WES_HALT macros on the Pandora.
* Fixed bug #19678: Escape the pipe-symbol in the wiki: TerrainCodeTableWML.
Version 1.10.0:
* Campaigns:

View file

@ -68,7 +68,7 @@ def parse_terrain(data):
""" % (
"http://svn.gna.org/svn/wesnoth/trunk/data/core/images/terrain/%s.png" % (content['editor_image'] if 'editor_image' in content else content['symbol_image']),
content['editor_name'][4:-1] if 'editor_name' in content else content['name'][4:-1],
content['string'].replace("# wmllint: ignore", ""),
content['string'].replace("# wmllint: ignore", "").replace("|", "¦"),
content['aliasof'] if 'aliasof' in content else "",
content['editor_group'])