diff --git a/rendercv/cli.py b/rendercv/cli.py index a838b92..852df59 100644 --- a/rendercv/cli.py +++ b/rendercv/cli.py @@ -435,8 +435,8 @@ def cli_command_new(full_name: Annotated[str, typer.Argument(help="Your full nam file_name = f"{full_name.replace(' ', '_')}_CV.yaml" file_path = pathlib.Path(file_name) - # Instead of getting the dictionary with data_model.model_dump() directy, we convert - # it to JSON and then to a dictionary. Because the YAML library we are using + # Instead of getting the dictionary with data_model.model_dump() directly, we + # convert it to JSON and then to a dictionary. Because the YAML library we are using # sometimes has problems with the dictionary returned by model_dump(). data_model_as_json = data_model.model_dump_json( exclude_none=True, by_alias=True, exclude={"cv": {"sections"}} diff --git a/rendercv/data_models.py b/rendercv/data_models.py index 7b72ebe..7be0e86 100644 --- a/rendercv/data_models.py +++ b/rendercv/data_models.py @@ -1212,9 +1212,9 @@ def get_a_sample_data_model(name: str = "John Doe") -> RenderCVDataModel: sections=sections, ) - desgin = ClassicThemeOptions(theme="classic", show_timespan_in=["Experience"]) + design = ClassicThemeOptions(theme="classic", show_timespan_in=["Experience"]) - return RenderCVDataModel(cv=cv, design=desgin) + return RenderCVDataModel(cv=cv, design=design) def generate_json_schema() -> dict: diff --git a/rendercv/renderer.py b/rendercv/renderer.py index 16cee07..28a5d69 100644 --- a/rendercv/renderer.py +++ b/rendercv/renderer.py @@ -385,7 +385,7 @@ def markdown_to_latex(markdown_string: str) -> str: will return: - `#!pytjon "This is a \\textbf{bold} text with a \\href{https://google.com}{\\textit{link}}."` + `#!python "This is a \\textbf{bold} text with a \\href{https://google.com}{\\textit{link}}."` Args: markdown_string (str): The markdown string to convert.