Skip to content

Commit

Permalink
Only include non-empty keywords to error list
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Mar 15, 2024
1 parent ce5a7f1 commit da5d0ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/application/latexer_ifelse.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def add_branch(self, keyword: str, body: str):
self.latex += "\n"
self.latex += rf" }}{{\ifthenelse{{\equal{{#1}}{{{keyword}}}}}{{"
self._num_parentheses_to_close += 1
self.keywords.append(keyword)

if keyword != "":
self.keywords.append(keyword)

# Body
self.latex += "\n"
Expand Down

0 comments on commit da5d0ec

Please sign in to comment.