We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1d8358 + 9c5cc14 commit 1aa3047Copy full SHA for 1aa3047
_static/js/custom.js
@@ -299,8 +299,12 @@ $(document).ready(() => {
299
// Only change indentation for GDScript and C++.
300
continue;
301
}
302
- let html = codeBlock.innerHTML;
303
- html = html.replace(/(?<=^(<span class="w">)?( {4})*)( {4})/gm, '\t');
+ let html = codeBlock.innerHTML.replace(/^(<span class="w">)?( {4})/gm, '\t');
+ let html_old = "";
304
+ while (html != html_old) {
305
+ html_old = html;
306
+ html = html.replace(/\t( {4})/gm, '\t\t')
307
+ }
308
codeBlock.innerHTML = html;
309
310
0 commit comments