renderer: refactor

This commit is contained in:
Sina Atalay 2024-03-31 20:18:01 +02:00
parent 16361aa424
commit e8d3cccfe9
1 changed files with 2 additions and 4 deletions

View File

@ -137,10 +137,8 @@ class LaTeXFile(TemplatedFile):
) )
entries: list[str] = [] entries: list[str] = []
for i, entry in enumerate(section.entries): for i, entry in enumerate(section.entries):
if i == 0: is_first_entry = i == 0
is_first_entry = True
else:
is_first_entry = False
entries.append( entries.append(
self.template( self.template(
section.entry_type, section.entry_type,