1
Vote

Mishandles comments and XML documentation

description

Code4Blog mishandles comments and XML documentation in VB.NET code. Here's an example of the input:
 
''' <summary>
''' Adds CrLf After RegEx captured String
''' </summary>
''' <param name="M"></param>
''' <returns></returns>
''' <remarks></remarks>
Function AddGrafAfterString(ByVal M As Match) As String
    '' Add CrLf After Captured String
    Dim strReturn As String = M.ToString & vbCrLf
    Return strReturn
End Function
 
Here's the output from Code4Blog. Notice the broken "span" tags:
 
<!-- Start block. Created with Code4Blog for Microsoft Visual Studio 2010. Copyright (c)2010 Vitaly Zayko http://zayko.net --> <div style="color:black;overflow:auto;width:99.5%;"> <pre style="margin:0em;"> <span&#39; <span style="color:#808080">&lt;summary&gt;</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; Adds CrLf After RegEx captured String</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; <span style="color:#808080">&lt;/summary&gt;</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; <span style="color:#808080">&lt;param name="M"&gt;&lt;/param&gt;</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; <span style="color:#808080">&lt;returns&gt;&lt;/returns&gt;</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; <span style="color:#808080">&lt;remarks&gt;&lt;/remarks&gt;</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span style="color:#0000ff">Function</span><span style="color:#000000"> AddGrafAfterString(<span style="color:#0000ff">ByVal</span><span style="color:#000000"> M <span style="color:#0000ff">As</span><span style="color:#000000"> <span style="color:#2b91af">Match</span><span style="color:#000000"> ) <span style="color:#0000ff">As</span><span style="color:#000000"> <span style="color:#0000ff">String</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span&#39; Add CrLf After Captured String</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> <span style="color:#0000ff">Dim</span><span style="color:#000000"> strReturn <span style="color:#0000ff">As</span><span style="color:#000000"> <span style="color:#0000ff">String</span><span style="color:#000000"> = M.ToString &amp; vbCrLf</pre> <pre style="margin:0em;"> <span style="color:#0000ff">Return</span><span style="color:#000000"> strReturn</pre> <pre style="margin:0em;"> <span style="color:#0000ff">End</span><span style="color:#000000"> <span style="color:#0000ff">Function</span><span style="color:#000000"> </pre> <pre style="margin:0em;"> </pre> <pre style="margin:0em;"> </pre> </div> <!-- End block -->

comments