changeset 1640:ac1a5c7d4c9b

use pre-wrap in vsource
author corvid <corvid@lavabit.com>
date Wed, 31 Mar 2010 18:44:37 +0000
parents accae8f299e3
children 7fb512621d23
files dpi/vsource.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/vsource.c	Tue Mar 30 23:55:05 2010 +0000
+++ b/dpi/vsource.c	Wed Mar 31 18:44:37 2010 +0000
@@ -106,7 +106,11 @@
 
    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))) {