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.
1 parent 9afdfbe commit 79fe4b1Copy full SHA for 79fe4b1
root/static/js/syntaxhighlighter.mjs
@@ -177,7 +177,7 @@ if (source) {
177
// the code.
178
else if (packageMatch) {
179
const decodedPackageMatch = decodeURIComponent(packageMatch[1]);
180
- const leadingSource = source.text().split("package " + decodedPackageMatch + ";");
+ const leadingSource = source.innerText.split("package " + decodedPackageMatch + ";");
181
const lineCount = leadingSource[0].split("\n").length;
182
if (leadingSource.length > 1 && lineCount > 1) {
183
source.dataset.line = lineCount;
0 commit comments