index2html: use -moz-pre-wrap

This commit is contained in:
roytam1 2018-11-15 23:17:51 +08:00
parent ee63982def
commit 045da71b23

View File

@ -376,7 +376,7 @@ nsIndexedToHTML::DoOnStartRequest(nsIRequest* request, nsISupports *aContext,
buffer.AppendLiteral("<style type=\"text/css\">\n" buffer.AppendLiteral("<style type=\"text/css\">\n"
"img { border: 0; padding: 0 2px; vertical-align: text-bottom; }\n" "img { border: 0; padding: 0 2px; vertical-align: text-bottom; }\n"
"td { font-family: monospace; padding: 2px 3px; text-align: right; vertical-align: bottom; white-space: pre; }\n" "td { font-family: monospace; padding: 2px 3px; text-align: right; vertical-align: bottom; white-space: -moz-pre-wrap; }\n"
"td:first-child { text-align: left; padding: 2px 10px 2px 3px; }\n" "td:first-child { text-align: left; padding: 2px 10px 2px 3px; }\n"
"table { border: 0; }\n" "table { border: 0; }\n"
"a.symlink { font-style: italic; }\n" "a.symlink { font-style: italic; }\n"