[pygobject] codegen/docextract_to_xml.py: One more &...; replacement (  ).



commit 681832c3cd040433a488a400693b68f213bf7078
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Tue Apr 13 13:33:12 2010 -0400

    	codegen/docextract_to_xml.py: One more &...; replacement (&nbsp;).
    
    	* codegen/docextract_to_xml.py: Replace &nbsp; which also causes
    	errors with a regular space.

 codegen/docextract_to_xml.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/docextract_to_xml.py b/codegen/docextract_to_xml.py
index a219e17..775b57d 100755
--- a/codegen/docextract_to_xml.py
+++ b/codegen/docextract_to_xml.py
@@ -35,6 +35,7 @@ def escape_text(unescaped_text):
     escaped_text = string.replace(escaped_text, '&percnt;', '%')
     escaped_text = string.replace(escaped_text, '&commat;', '@')
     escaped_text = string.replace(escaped_text, '&num;', '')
+    escaped_text = string.replace(escaped_text, '&nbsp;', ' ')
     # This represents a '/' before or after an '*' so replace with slash but
     # with spaces.
     escaped_text = string.replace(escaped_text, '&sol;', ' / ')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]