diff options
author | Joel Martinez <joelmartinez@gmail.com> | 2017-03-06 23:27:17 +0300 |
---|---|---|
committer | Joel Martinez <joelmartinez@gmail.com> | 2017-03-07 01:03:32 +0300 |
commit | cea74db71a4671ab278977e41b3d761d7779e3b1 (patch) | |
tree | 2b4f6122959bfa99a46153595a35f05be0a02bbc /mdoc/Test | |
parent | 170bf315e173e2fed0c112a7876e0ec7f4cff59e (diff) |
mdoc: special characters in attributes are now filtered.
Fixes #32, which was an issue with the ascii null character. It caused the resulting XML to be
malformed.
Diffstat (limited to 'mdoc/Test')
-rw-r--r-- | mdoc/Test/DocTest-InternalInterface.cs | 1 | ||||
-rw-r--r-- | mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mdoc/Test/DocTest-InternalInterface.cs b/mdoc/Test/DocTest-InternalInterface.cs index 812f8dc7..34e13b1f 100644 --- a/mdoc/Test/DocTest-InternalInterface.cs +++ b/mdoc/Test/DocTest-InternalInterface.cs @@ -7,6 +7,7 @@ namespace MyNamespace { } public class MyClass : MyInternalInterface { + [System.ComponentModel.DefaultValue ('\0')] public string Bar {get;set;} public void BarMeth () {} // part of the interface, but publicly implemented diff --git a/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml b/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml index 614b7b7d..4c9b81d2 100644 --- a/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml +++ b/mdoc/Test/en.expected-internal-interface/MyNamespace/MyClass.xml @@ -34,6 +34,11 @@ <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> + <Attributes> + <Attribute> + <AttributeName>System.ComponentModel.DefaultValue('\0')</AttributeName> + </Attribute> + </Attributes> <ReturnValue> <ReturnType>System.String</ReturnType> </ReturnValue> |