Skip to content

Commit f556b2b

Browse files
fix regex to extract tikz correctly
1 parent dbd6b80 commit f556b2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build_support/catalog/update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def generate_rst_table(df: pd.DataFrame, rst_path: Path, force_build: bool = Fal
2323

2424
f.write(" * - **Game**\n")
2525

26-
# Compile regex to extract the tikzpicture environment from the generated tex
27-
tikz_re = re.compile(r"(\\begin\{tikzpicture\}.*?\\end\{tikzpicture\})", re.DOTALL)
26+
# Compile regex to extract the content between \begin{document} and \end{document}
27+
tikz_re = re.compile(r"\\begin\{document\}(.*?)\\end\{document\}", re.DOTALL)
2828

2929
for _, row in df.iterrows():
3030
slug = row["Game"]

0 commit comments

Comments
 (0)