# HG changeset patch # User Erik Grinaker # Date 1176070235 0 # Node ID dceea539b1277ed4bd3ada7fc697ab93c1f32b23 # Parent 4896555f19bf5786629afaad8a78a099f6235112 fixed crash when saving file after certain imports (fixes bug #203) diff -r 4896555f19bf5786629afaad8a78a099f6235112 -r dceea539b1277ed4bd3ada7fc697ab93c1f32b23 NEWS --- a/NEWS Sun Apr 08 21:52:07 2007 +0000 +++ b/NEWS Sun Apr 08 22:10:35 2007 +0000 @@ -3,6 +3,7 @@ Bugfixes: - fixed crash in XHTML exporter [Javier Kohen] +- fixed crash when saving file after certain imports Translation: - added finnish translation [Ilkka Tuohela] diff -r 4896555f19bf5786629afaad8a78a099f6235112 -r dceea539b1277ed4bd3ada7fc697ab93c1f32b23 src/lib/util.py --- a/src/lib/util.py Sun Apr 08 21:52:07 2007 +0000 +++ b/src/lib/util.py Sun Apr 08 22:10:35 2007 +0000 @@ -152,6 +152,9 @@ def escape_markup(string): "Escapes a string so it can be placed in a markup string" + if string is None: + return "" + string = string.replace("&", "&") string = string.replace("<", "<") string = string.replace(">", ">")