Repository navigation
Use white-space: pre-wrap for code formatting - #810
Conversation
Apparently code formatting is used for the entire user comments. Use `white-space: pre-wrap` to avoid horizontal scrolling of the plaintext description. see 7d40388
|
Also worth pointing out that the notes now have extra newlines. |
|
This is done on purpose. See #770 However, you are right that in user notes there could be normal text that should not be scrollable. I guess that's the reason why it was done using |
Ugh. Are they stored in a pre-rendered version or is the post-processor just not applied to them? They also still have the
You mean to prevent the wrapping from happening within the actual PHP code? |
Answering my own question: Line 241 in bd160d8 I'll unify that function with PhD. |
This doesn't actually work, because this doesn't match the whitespace within PHP code. I don't really consider soft wrapping the PHP code to be an issue, though. It shouldn't change the semantic. I've added a commit to unify the highlighting with PhD, though. I've also verified that the PHP 8.0 release page renders properly. |
Apparently code formatting is used for the entire user comments. Use
white-space: pre-wrapto avoid horizontal scrolling of the plaintext description.see 7d40388
Fixes php/doc-en#2724