*! Do not include dsl source in html result. This stops wrecking up html

when said source contains --> mistakenly treated as an end of comment.
   Rather than escape it, we just don't include the source at all.
This commit is contained in:
Konstantin Isakov 2009-05-21 21:25:11 +00:00
parent c09a353c99
commit 1504491ac8

View file

@ -630,7 +630,10 @@ string DslDictionary::dslToHtml( wstring const & str )
if ( html[ x ] == '\n' )
html.insert( x + 1, "</p><p>" );
return "<!-- DSL Source:\n" + Utf8::encode( str ) + "\n-->"
return
#if 0 // Enable this to enable dsl source in html as a comment
"<!-- DSL Source:\n" + Utf8::encode( str ) + "\n-->"
#endif
"<p>" + html + "</p>";
}