Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2013-11-06 19:30:06 +0400
committerDaniel Grunwald <daniel@danielgrunwald.de>2013-11-06 19:30:06 +0400
commitb55866d86d4d4e3fc1b3cd13d61479ecccdcf8e7 (patch)
treef39aee7f3bac6036de5e20a54a0bb09c631185a7 /ICSharpCode.NRefactory.Xml
parentbf08a76ec8ae68238d3a7f7b65e6a06e9189737c (diff)
Fix #244: Add CDATA Support to DocumentationElement.cs
Diffstat (limited to 'ICSharpCode.NRefactory.Xml')
-rw-r--r--ICSharpCode.NRefactory.Xml/DocumentationElement.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory.Xml/DocumentationElement.cs b/ICSharpCode.NRefactory.Xml/DocumentationElement.cs
index 17d17e1f..43e816b3 100644
--- a/ICSharpCode.NRefactory.Xml/DocumentationElement.cs
+++ b/ICSharpCode.NRefactory.Xml/DocumentationElement.cs
@@ -198,9 +198,13 @@ namespace ICSharpCode.NRefactory.Xml
List<XmlDocumentationElement> list = new List<XmlDocumentationElement>();
foreach (var child in childObjects) {
var childText = child as AXmlText;
+ var childTag = child as AXmlTag;
var childElement = child as AXmlElement;
if (childText != null) {
list.Add(new XmlDocumentationElement(childText.Value, declaringEntity));
+ } else if (childTag != null && childTag.IsCData) {
+ foreach (var text in childTag.Children.OfType<AXmlText>())
+ list.Add(new XmlDocumentationElement(text.Value, declaringEntity));
} else if (childElement != null) {
if (nestingLevel < 5 && childElement.Name == "inheritdoc") {
string cref = childElement.GetAttributeValue("cref");