diff --git a/rendercv/data_model.py b/rendercv/data_model.py index f06309f..f92ceed 100644 --- a/rendercv/data_model.py +++ b/rendercv/data_model.py @@ -69,13 +69,12 @@ def escape_latex_characters(sentence: str) -> str: # Handle backslash and curly braces separately because the other characters are # escaped with backslash and curly braces: - # --don't escape curly braces as they are used heavily in LaTeX--: - # sentence = sentence.replace("{", ">>{") - # sentence = sentence.replace("}", ">>}") - # --don't escape backslash as it is used heavily in LaTeX--: + sentence = sentence.replace("{", ">>{") + sentence = sentence.replace("}", ">>}") + # don't escape backslash as it is used heavily in LaTeX: # sentence = sentence.replace("\\", "\\textbackslash{}") - # sentence = sentence.replace(">>{", "\\{") - # sentence = sentence.replace(">>}", "\\}") + sentence = sentence.replace(">>{", "\\{") + sentence = sentence.replace(">>}", "\\}") # Loop through the letters of the sentence and if you find an escape character, # replace it with its LaTeX equivalent: @@ -629,7 +628,6 @@ class Design(BaseModel): # ====================================================================================== LaTeXString = Annotated[str, AfterValidator(escape_latex_characters)] -SpellCheckedString = Annotated[LaTeXString, AfterValidator(check_spelling)] PastDate = Annotated[ str, Field(pattern=r"\d{4}-?(\d{2})?-?(\d{2})?"), diff --git a/run_rendercv.py b/run_rendercv.py index ec7ce23..c78ff9a 100644 --- a/run_rendercv.py +++ b/run_rendercv.py @@ -2,7 +2,7 @@ from rendercv.__main__ import render from rendercv.data_model import generate_json_schema import os -input_file_path = "John_Doe_CV.yaml" +input_file_path = "SinaAtalay_CV.yaml" render(input_file_path) # type: ignore # This script is equivalent to running the following command in the terminal: