Skip to content

Commit

Permalink
Apply white-space: pre onto the entire code snippet
Browse files Browse the repository at this point in the history
This is needed to correctly handle whitespace outside of a `<?php … ?>` portion.

see b7bccc4
see php/phd@01d6beb
see php/doc-en#2648
  • Loading branch information
TimWolla authored Aug 16, 2023
1 parent be5ac8f commit bec1e8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions styles/theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/* }}} */


Expand Down

0 comments on commit bec1e8b

Please sign in to comment.