Skip to content

Commit

Permalink
escape &
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpieters committed May 17, 2023
1 parent aad4290 commit 9ac2530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rules_doc_generator/model/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def to_latex(self, id_map: RefDict) -> str:
result = ''
for element in self.textElements:
result += element.to_latex(id_map)
return re.sub(r'\"(.*?)\"', r"``\1''", result)
result = re.sub(r'\"(.*?)\"', r"``\1''", result)
result = re.sub('&', '\&', result)
return result

@dataclass
class Example:
Expand Down

0 comments on commit 9ac2530

Please sign in to comment.