[web-php] master: Apply `white-space: pre` onto the entire code snippet (#801)

From: Date: Wed, 16 Aug 2023 13:29:41 +0000
Subject: [web-php] master: Apply `white-space: pre` onto the entire code snippet (#801)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30969@lists.php.net to get a copy of this message
Author: Tim Düsterhus (TimWolla) Committer: GitHub (web-flow) Pusher: Girgias Date: 2023-08-16T14:16:16+01:00 Commit: https://github.com/php/web-php/commit/7d4038829e601bfdff3c434f5d8f20d84b344e27 Raw diff: https://github.com/php/web-php/commit/7d4038829e601bfdff3c434f5d8f20d84b344e27.diff Apply white-space: pre onto the entire code snippet (#801) This is needed to correctly handle whitespace outside of a <?php … ?> portion. see php/web-php@b7bccc4049ef4b70810fa159796133019674bdf8 see php/phd@01d6beb366bfb5e5b99bfdcc44393d8d1ee2d433 see php/doc-en#2648 Changed paths: M styles/theme-base.css Diff: diff --git a/styles/theme-base.css b/styles/theme-base.css index 756f4fbd3..ffe68c693 100644 --- a/styles/theme-base.css +++ b/styles/theme-base.css @@ -1328,16 +1328,13 @@ div.tip p:first-child { .docs .phpcode code { display: block; overflow-x: auto; + white-space: pre; } .docs .qandaentry dt .phpcode * { font-weight: normal; } -.phpcode code span span { - white-space: pre; -} - /* }}} */

« previous php.webmaster (#30969) next »