diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2013-11-06 19:30:06 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2013-11-06 19:30:06 +0400 |
commit | b55866d86d4d4e3fc1b3cd13d61479ecccdcf8e7 (patch) | |
tree | f39aee7f3bac6036de5e20a54a0bb09c631185a7 /ICSharpCode.NRefactory.Xml | |
parent | bf08a76ec8ae68238d3a7f7b65e6a06e9189737c (diff) |
Fix #244: Add CDATA Support to DocumentationElement.cs
Diffstat (limited to 'ICSharpCode.NRefactory.Xml')
-rw-r--r-- | ICSharpCode.NRefactory.Xml/DocumentationElement.cs | 4 |
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"); |