[pygobject] Doc Extractor: Use replacements that make sense for &...; expressions.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Doc Extractor: Use replacements that make sense for &...; expressions.
- Date: Mon, 19 Apr 2010 00:24:45 +0000 (UTC)
commit 11fa39a861abf679e01b5f0da97be93ae0adf0f0
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Sun Apr 18 20:22:21 2010 -0400
Doc Extractor: Use replacements that make sense for &...; expressions.
* codegen/docextract_to_xml.py: Use # and   respectively for
# (#) and . These are interpreted correctly in XML and will
not make the parsing crash.
codegen/docextract_to_xml.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/docextract_to_xml.py b/codegen/docextract_to_xml.py
index 775b57d..7ac1053 100755
--- a/codegen/docextract_to_xml.py
+++ b/codegen/docextract_to_xml.py
@@ -34,8 +34,8 @@ def escape_text(unescaped_text):
escaped_text = string.replace(escaped_text, '*', '*')
escaped_text = string.replace(escaped_text, '%', '%')
escaped_text = string.replace(escaped_text, '@', '@')
- escaped_text = string.replace(escaped_text, '#', '')
- escaped_text = string.replace(escaped_text, ' ', ' ')
+ escaped_text = string.replace(escaped_text, '#', '#')
+ escaped_text = string.replace(escaped_text, ' ', ' ')
# This represents a '/' before or after an '*' so replace with slash but
# with spaces.
escaped_text = string.replace(escaped_text, '/', ' / ')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]