From 836a2050339cce08f60e7f9c74f8980f2e96a5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Wieczorek?= Date: Thu, 11 May 2017 19:20:58 +0200 Subject: [PATCH] small refractor --- configuration.ini | 6 +++--- converter.py | 10 +++++----- recipe_dialog.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/configuration.ini b/configuration.ini index 5f6b063..f5d6b1c 100644 --- a/configuration.ini +++ b/configuration.ini @@ -1,6 +1,6 @@ [user] -default-book-name = dokument -font-size = 10 +font-size = 12 default-recipe = doc.zip -font-name = DejaVu Sans +font-name = Carlito +default-book-name = dokument2 diff --git a/converter.py b/converter.py index a53a422..848d00f 100644 --- a/converter.py +++ b/converter.py @@ -21,11 +21,11 @@ def install_pandoc(): def convert(source, to, format, outputfile=None, variables={}, encoding='utf-8', extra_args=()): - """Wrapper around pypandoc.convert() - - :param dict variables: dictionary with values for template. - If some value of dictionary is list every argument - of it is passed separately to Pandoc""" + """ + Wrapper around pypandoc.convert() :param dict variables: dictionary with + values for template. If some value of dictionary is list every argument + of it is passed separately to Pandoc. + """ args = [] args.extend(extra_args) for k, v in variables.items(): diff --git a/recipe_dialog.py b/recipe_dialog.py index 8d5e1b4..e320770 100644 --- a/recipe_dialog.py +++ b/recipe_dialog.py @@ -10,7 +10,6 @@ from PyQt5.QtGui import QFont - from PyQt5.QtWidgets import QLabel from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QLineEdit @@ -34,6 +33,7 @@ import zipfile from zipfile import ZipFile + import subprocess from subprocess import check_call