aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dpi/vsource.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dpi/vsource.c b/dpi/vsource.c
index a76b34e7..9dbfd5f2 100644
--- a/dpi/vsource.c
+++ b/dpi/vsource.c
@@ -106,7 +106,11 @@ void send_html_text(Dsh *sh, int data_size)
a_Dpip_dsh_printf(sh, 0, DOCTYPE);
a_Dpip_dsh_printf(sh, 0,
- "<html><body>\n<table cellpadding='0'>\n");
+ "\n"
+ "<html><head>\n"
+ "<style type=\"text/css\">PRE {white-space: pre-wrap}\n"
+ "</style>\n"
+ "</head><body>\n<table cellpadding='0'>\n");
while (bytes_read < data_size &&
(src_str = a_Dpip_dsh_read_token(sh, 1))) {