Skip to content

Commit 7a6372d

Browse files
committed
Simpler implementation
1 parent e77680d commit 7a6372d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderers/CodeNodeRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function render(): string
8686
// this is the number of digits of the codeblock lines-of-code
8787
// e.g. LOC = 5, digits = 1; LOC = 18, digits = 2
8888
// this is useful to tweak the code listings according to their length
89-
'numLocDigits' => (int) floor(log10(\count($lines))) + 1,
89+
'numLocDigits' => strlen((string) \count($lines)),
9090
]
9191
);
9292
}

0 commit comments

Comments
 (0)