From b8169715925171a7d703466d1e61b4291ce2d451 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 24 Feb 2024 20:56:03 +0100 Subject: [PATCH] fix markdown file generation --- rendercv/renderer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rendercv/renderer.py b/rendercv/renderer.py index 0b2f1a9..b21aed3 100644 --- a/rendercv/renderer.py +++ b/rendercv/renderer.py @@ -132,11 +132,12 @@ class LaTeXFile(TemplatedFile): data_model: dm.RenderCVDataModel, environment: jinja2.Environment, ): + latexfile_data_model = copy.deepcopy(data_model) transformed_sections = transform_markdown_sections_to_latex_sections( - copy.deepcopy(data_model.cv.sections_input) + latexfile_data_model.cv.sections_input ) - data_model.cv.sections_input = transformed_sections - super().__init__(data_model, environment) + latexfile_data_model.cv.sections_input = transformed_sections + super().__init__(latexfile_data_model, environment) def render_templates(self) -> tuple[str, str, list[tuple[str, list[str], str]]]: """Render and return all the templates for the $\\LaTeX$ file.