fix custom link_text bug

This commit is contained in:
Sina Atalay 2023-10-22 16:38:48 +02:00
parent 5187c6d4a0
commit fc03edb285
1 changed files with 2 additions and 1 deletions

View File

@ -953,7 +953,7 @@ class Connection(BaseModel):
Warning: Warning:
This class isn't designed for users to use, but it is used by RenderCV to make This class isn't designed for users to use, but it is used by RenderCV to make
the $\LaTeX$ templating easier. the $\\LaTeX$ templating easier.
""" """
name: Literal[ name: Literal[
@ -1247,6 +1247,7 @@ class CurriculumVitae(BaseModel):
for custom_section in self.custom_sections: # type: ignore for custom_section in self.custom_sections: # type: ignore
if custom_section.title == section_name: if custom_section.title == section_name:
entry_type = custom_section.entries[0].__class__.__name__ entry_type = custom_section.entries[0].__class__.__name__
link_text = custom_section.link_text
entries = custom_section.entries entries = custom_section.entries
break break