git-svn: trunk@3686
Török Edvin authored on 2008/03/01 18:24:37... | ... |
@@ -912,9 +912,11 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
912 | 912 |
break; |
913 | 913 |
case HTML_COMMENT: |
914 | 914 |
if (in_script && !isspace(*ptr)) { |
915 |
+ unsigned char c = tolower(*ptr); |
|
915 | 916 |
/* dump script to nocomment.html, since we no longer have |
916 | 917 |
* comment.html/script.html */ |
917 |
- html_output_c(file_buff_o2, tolower(*ptr)); |
|
918 |
+ if(c == '\'') c = '"'; |
|
919 |
+ html_output_c(file_buff_o2, c); |
|
918 | 920 |
} |
919 | 921 |
if (*ptr == '>') { |
920 | 922 |
state = HTML_SKIP_WS; |