Browse code

don't add newline between script tags.

git-svn: trunk@3682

Török Edvin authored on 2008/02/28 00:57:30
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Feb 27 16:59:54 EET 2008 (edwin)
2
+------------------------------------
3
+  * libclamav/htmlnorm.c: don't add newline between script tags.
4
+
1 5
 Wed Feb 27 12:17:19 CET 2008 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/untar.c: fix fd check
... ...
@@ -933,7 +933,8 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag
933 933
 					next_state = HTML_NORM;
934 934
 					if (strcmp(tag, "/script") == 0) {
935 935
 						in_script=FALSE;
936
-						html_output_c(file_buff_o2, '\n');
936
+						/*don't output newlines in nocomment.html
937
+						 * html_output_c(file_buff_o2, '\n');*/
937 938
 					}
938 939
 					if (hrefs && hrefs->scanContents && in_ahref) {
939 940
 						if(strcmp(tag,"/a") == 0) {