Skip to content

Commit

Permalink
[asciidoc] use options for ifeval instead of label which is empty in …
Browse files Browse the repository at this point in the history
…general
  • Loading branch information
rmannibucau committed Jul 2, 2024
1 parent f124a30 commit 7aa047f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ private List<Element> parseLine(final Reader reader, final String line,
doParse(new Reader(readIfBlock(reader)), l -> true, resolver, currentAttributes, false),
macro.options()));
case "ifeval" -> elements.add(new ConditionalBlock(
new ConditionalBlock.Ifeval(parseCondition(macro.label().strip(), currentAttributes)),
new ConditionalBlock.Ifeval(parseCondition(macro.label().isBlank() ? line.substring(i + 1, end).strip() : macro.label().strip(), currentAttributes)),
doParse(new Reader(readIfBlock(reader)), l -> true, resolver, currentAttributes, false),
macro.options()));
default -> elements.add(macro);
Expand Down

0 comments on commit 7aa047f

Please sign in to comment.