Skip to content

Commit 7077a99

Browse files
committed
-
1 parent 5a19149 commit 7077a99

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Directive/ConfigurationBlockDirective.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function processSub(Parser $parser, ?Node $document, string $variable, st
5252
}
5353

5454
$language = $node->getLanguage() ?? 'Unknown';
55+
5556
$blocks[] = [
5657
'hash' => hash('sha1', $node->getValue()),
5758
'language_label' => self::LANGUAGE_LABELS[$language] ?? ucfirst(str_replace('-', ' ', $language)),

src/Templates/default/html/directives/configuration-block.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% endfor %}
1010
</div>
1111

12-
{% for i, block in blocks %}
12+
{% for block in blocks %}
1313
<div role="tabpanel" id="{{ 'configuration-block-tabpanel-' ~ block.hash }}" aria-label="{{ block.language_label }}" class="configuration-codeblock" data-language="{{ block.language }}" style="{{ not loop.first ? 'display: none' }}">
1414
{{ block.code|raw }}
1515
</div>

0 commit comments

Comments
 (0)