This commit is contained in:
Sina Atalay
2025-12-10 18:42:51 +03:00
parent 81851c18e7
commit 4e00ba743f
2 changed files with 6 additions and 2 deletions

View File

@@ -30,6 +30,8 @@ def generate_html(
html_path = resolve_rendercv_file_path(
rendercv_model, rendercv_model.settings.render_command.html_path
)
html_contents = render_html(rendercv_model, markdown_path.read_text(encoding="utf-8"))
html_contents = render_html(
rendercv_model, markdown_path.read_text(encoding="utf-8")
)
html_path.write_text(html_contents, encoding="utf-8")
return html_path

View File

@@ -200,7 +200,9 @@ def create_sample_yaml_input_file(
yaml_locale_field = yaml_locale_part + "\n".join(below_locale_commented) + "\n"
yaml_settings_field = settings_part + split_by_settings[1]
yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_field + yaml_settings_field
yaml_string = (
yaml_cv_field + yaml_design_field + yaml_locale_field + yaml_settings_field
)
if file_path is not None:
file_path.write_text(yaml_string, encoding="utf-8")