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 e77680d commit 7a6372dCopy full SHA for 7a6372d
src/Renderers/CodeNodeRenderer.php
@@ -86,7 +86,7 @@ public function render(): string
86
// this is the number of digits of the codeblock lines-of-code
87
// e.g. LOC = 5, digits = 1; LOC = 18, digits = 2
88
// this is useful to tweak the code listings according to their length
89
- 'numLocDigits' => (int) floor(log10(\count($lines))) + 1,
+ 'numLocDigits' => strlen((string) \count($lines)),
90
]
91
);
92
}
0 commit comments