taylorchu / h5

html5 beautifier in command line
20 stars 0 forks source link

cdata mangled #3

Open hildjj opened 10 years ago

hildjj commented 10 years ago

Example:

 <pre class="sourcecode lang-c"><![CDATA[
#include <stdio.h>

int main(void)
{
    printf("hello, world\n");
    return 0;
}
]]></pre>

Output:

<pre class="sourcecode lang-c">
    <!--
    [CDATA[
    #include <stdio.h
    -->
    int main(void)
    {
    printf("hello, world\n");
    return 0;
    }
    ]]>
</pre>

Once you fix the CDATA mangling, please make sure you don't change the indentation of the text inside the pre tag.

taylorchu commented 10 years ago

this is an upstream bug. please report https://code.google.com/p/go.net/