Skip to content

Commit

Permalink
Latte: added line for labels (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
lulco committed Mar 2, 2023
1 parent 12b4c12 commit 1e10f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bridges/FormsLatte/FormMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public function macroLabel(MacroNode $node, PhpWriter $writer)
: 'if ($薀_label = end($this->global->formsStack)[%0.word]'
)
. '->%1.raw) echo $薀_label'
. ($node->tokenizer->isNext() ? '->addAttributes(%node.array)' : ''),
. ($node->tokenizer->isNext() ? '->addAttributes(%node.array)' : '')
. " /* line $node->startLine */;",
$name,
$words ? ('getLabelPart(' . implode(', ', array_map([$writer, 'formatWord'], $words)) . ')') : 'getLabel()'
);
Expand Down

0 comments on commit 1e10f95

Please sign in to comment.