mirror of https://github.com/eyhc1/rendercv.git
renderer: fix decoding issues (#29)
This commit is contained in:
parent
990d5108a2
commit
d24d33e208
|
@ -956,7 +956,11 @@ def latex_to_pdf(
|
|||
"If you can't solve the problem, please open an issue on GitHub.",
|
||||
)
|
||||
else:
|
||||
try:
|
||||
output = output[0].decode("utf-8")
|
||||
except UnicodeDecodeError:
|
||||
output = output[0].decode("latin-1")
|
||||
|
||||
if "Rerun to get" in output:
|
||||
# Run TinyTeX again to get the references right:
|
||||
subprocess.run(
|
||||
|
|
Loading…
Reference in New Issue