summaryrefslogtreecommitdiff
path: root/dpi/vsource.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-03-31 18:44:37 +0000
committercorvid <corvid@lavabit.com>2010-03-31 18:44:37 +0000
commite69c87143a4bd364a197d6a86c97680a4e356537 (patch)
tree80dafcc7abe386b3d7a95a2de5507c23349ef832 /dpi/vsource.c
parentd4db8870201639bc505decfa382b822357be9c0c (diff)
use pre-wrap in vsource
Diffstat (limited to 'dpi/vsource.c')
-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))) {