From 4f0eda38393e95058adec360f9b4f58a86e9aa5e Mon Sep 17 00:00:00 2001 From: corvid Date: Sun, 6 Jun 2010 18:05:33 +0000 Subject: vsource fix extraneous with empty source file --- dpi/vsource.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dpi/vsource.c') diff --git a/dpi/vsource.c b/dpi/vsource.c index e8eb6f34..fa43a2f2 100644 --- a/dpi/vsource.c +++ b/dpi/vsource.c @@ -110,7 +110,8 @@ void send_html_text(Dsh *sh, int data_size) "\n" "\n" - "\n\n"); + "\n" + "\n
\n"); while (bytes_read < data_size && (src_str = a_Dpip_dsh_read_token(sh, 1))) { @@ -146,7 +147,9 @@ void send_html_text(Dsh *sh, int data_size) dFree(src_str); } - a_Dpip_dsh_printf(sh, 1, "
"); + if (data_size > 0) + a_Dpip_dsh_printf(sh, 0, ""); + a_Dpip_dsh_printf(sh, 1, ""); } /* -- cgit v1.2.3