Hi Dave,
I submitted a pull request of my changes. Attached is a patch file of the
changes I made.
Thanks,
George
diff -r 9d56e3e892f0 generateDS.py
--- a/generateDS.py Thu Jan 29 11:07:15 2015 -0800
+++ b/generateDS.py Fri Feb 13 09:09:41 2015 -0700
@@ -4993,6 +4993,7 @@
Tag_pattern_ = re_.compile(r'({.*})?(.*)')
String_cleanup_pat_ = re_.compile(r"[\\n\\r\\s]+")
Namespace_extract_pat_ = re_.compile(r'{(.*)}(.*)')
+CDATA_pattern_ = re_.compile("<!\[CDATA\[.*\]\]>", re_.DOTALL)
#
# Support/utility functions.
@@ -5010,6 +5011,11 @@
return ''
s1 = (isinstance(inStr, basestring) and inStr or
'%%s' %% inStr)
+
+ if CDATA_pattern_.match(s1):
+ #it's wrapped in cdata tags, no need to encode it
+ return s1
+
s1 = s1.replace('&', '&')
s1 = s1.replace('<', '<')
s1 = s1.replace('>', '>')
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users