Skip to content

Commit

Permalink
fix windows path again
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Apr 29, 2023
1 parent 06d96e7 commit 57f3af0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/note_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def main():
f"Valid formats: {valid_output_formats}."
)
# special arguments for some output formats
create_custom_css_file(Path(tmpdirname) / "custom.css")
custom_css_file = str(Path(tmpdirname) / "custom.css")
create_custom_css_file(custom_css_file)
format_kwargs = {
# https://github.com/NicklasTegner/pypandoc/issues/186#issuecomment-673282133
"pdf": {
Expand All @@ -125,7 +126,7 @@ def main():
"--metadata",
f"title={candidate.title}",
"--css",
Path(tmpdirname) / "custom.css",
f"file:///{custom_css_file}",
],
}
}
Expand Down

0 comments on commit 57f3af0

Please sign in to comment.