Matthias Vogelgesang пре 6 година
родитељ
комит
e63874f3c1
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 1
      Makefile
  2. 1 2
      convert.py

+ 1 - 1
Makefile

@@ -14,7 +14,7 @@ clean:
 
 
 %.tex: %.tex.in $(RESUME)
-	@python convert.py --signature signature.png --template $< --resume $(RESUME) > $@
+	@python3 convert.py --signature signature.png --template $< --resume $(RESUME) > $@
 
 
 %.pdf: %.tex $(TEX)

+ 1 - 2
convert.py

@@ -50,8 +50,7 @@ def main():
     data = json.load(open(args.resume, 'r'))
     data['basics']['signature'] = args.signature
     template = create_template(args)
-    result = template.render(resume=data).encode('utf-8')
-    print(result)
+    print(template.render(resume=data))
 
 
 if __name__ == '__main__':