Skip to content

Commit

Permalink
Docs: Fix code blocks occasionally lacking white-space in Firefox (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxz authored Dec 4, 2024
1 parent d9bf05e commit dfab00f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function onDocumentLoad() {
for ( let i = 0; i < elements.length; i ++ ) {

const e = elements[ i ];
e.currentStyle = { 'whiteSpace': 'pre-wrap' }; // Workaround for Firefox, see #30008
e.className += ' prettyprint';
e.setAttribute( 'translate', 'no' );

Expand Down

0 comments on commit dfab00f

Please sign in to comment.