We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39c9ec9 commit 5ab0d80Copy full SHA for 5ab0d80
1 file changed
vrdu/preprocess.py
@@ -11,7 +11,6 @@
11
log = logger.get_logger(__name__)
12
13
14
-
15
def remove_comments(original_tex: str) -> None:
16
"""
17
Removes comments from a TeX file.
@@ -76,6 +75,8 @@ def replace_pdf_ps_figures_with_png(original_tex: str) -> None:
76
75
Raises:
77
FileNotFoundError: If a PDF file specified in the TeX file is not found.
78
+
79
+ # FIXME: use more robust way, since the path to images may not exists.
80
main_directory = os.path.dirname(original_tex)
81
with open(original_tex) as f:
82
content = f.read()
0 commit comments