Skip to content

Commit

Permalink
fix: changed how we extract major.minor from pandoc semver as they do…
Browse files Browse the repository at this point in the history
…nt always use a full major.minor.patch semver and we just throw away anything after minor anyway. (#50)

Signed-off-by: Chris Doyle <[email protected]>
  • Loading branch information
cdsre authored Dec 2, 2024
1 parent bca5e4b commit 8ac6ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaosreport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def save_report(
extra_args = []

pandoc_version = pypandoc.get_pandoc_version()
major, minor, _ = pandoc_version.split(".", 2)
major, minor = pandoc_version.split(".")[0:2]
if int(major) == 2 and int(minor) < 19:
extra_args.append("--self-contained")
else:
Expand Down

0 comments on commit 8ac6ee9

Please sign in to comment.