Skip to content

Commit b50f86e

Browse files
author
Will Fris
committed
Remove whitespace on webserver error page
1 parent 7ca21d2 commit b50f86e

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

sapi/cli/php_cli_server.c

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,31 @@ ZEND_DECLARE_MODULE_GLOBALS(cli_server)
239239
/* {{{ static char php_cli_server_css[]
240240
* copied from ext/standard/info.c
241241
*/
242-
static const char php_cli_server_css[] = "<style>\n" \
243-
"body { background-color: #fcfcfc; color: #333333; margin: 0; padding:0; }\n" \
244-
"h1 { font-size: 1.5em; font-weight: normal; background-color: #9999cc; min-height:2em; line-height:2em; border-bottom: 1px inset black; margin: 0; }\n" \
245-
"h1, p { padding-left: 10px; }\n" \
246-
"code.url { background-color: #eeeeee; font-family:monospace; padding:0 2px;}\n" \
247-
"</style>\n";
242+
static const char php_cli_server_css[] = "<style>" \
243+
"body{" \
244+
"background-color:#fcfcfc;" \
245+
"color:#333333;" \
246+
"margin:0;" \
247+
"padding:0;" \
248+
"}" \
249+
"h1{" \
250+
"font-size:1.5em;" \
251+
"font-weight:normal;" \
252+
"background-color:#9999cc;" \
253+
"min-height:2em;" \
254+
"line-height:2em;" \
255+
"border-bottom:1px inset black;" \
256+
"margin:0;" \
257+
"}" \
258+
"h1,p{" \
259+
"padding-left:10px;" \
260+
"}" \
261+
"code.url{" \
262+
"background-color:#eeeeee;" \
263+
"font-family:monospace;" \
264+
"padding:0 2px;" \
265+
"}" \
266+
"</style>";
248267
/* }}} */
249268

250269
#ifdef PHP_WIN32

0 commit comments

Comments
 (0)