From a865b715f3049923ec8297c291bb823d1002b6ca Mon Sep 17 00:00:00 2001 From: Wesley Appler <83597346+lamemakes@users.noreply.github.com> Date: Thu, 11 Jan 2024 06:35:03 -0500 Subject: [PATCH] Fixed lack of spacing for multi-line strings (#619) Co-authored-by: Wes Appler --- src/escpos/printer/cups.py | 4 ++-- src/escpos/printer/lp.py | 2 +- src/escpos/printer/serial.py | 4 ++-- src/escpos/printer/usb.py | 4 ++-- src/escpos/printer/win32raw.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/escpos/printer/cups.py b/src/escpos/printer/cups.py index f9634c2..bdd53c3 100644 --- a/src/escpos/printer/cups.py +++ b/src/escpos/printer/cups.py @@ -49,8 +49,8 @@ def dependency_pycups(func): """Throw a RuntimeError if pycups is not imported.""" if not is_usable(): raise RuntimeError( - "Printing with PyCups requires the pycups library to" - "be installed. Please refer to the documentation on" + "Printing with PyCups requires the pycups library to " + "be installed. Please refer to the documentation on " "what to install and install the dependencies for pycups." ) return func(*args, **kwargs) diff --git a/src/escpos/printer/lp.py b/src/escpos/printer/lp.py index ff22e05..fafab26 100644 --- a/src/escpos/printer/lp.py +++ b/src/escpos/printer/lp.py @@ -34,7 +34,7 @@ def dependency_linux_lp(func): """Throw a RuntimeError if not on a non-Windows system.""" if not is_usable(): raise RuntimeError( - "This printer driver depends on LP which is not" + "This printer driver depends on LP which is not " "available on Windows systems." ) return func(*args, **kwargs) diff --git a/src/escpos/printer/serial.py b/src/escpos/printer/serial.py index 28ada62..0f55c9a 100644 --- a/src/escpos/printer/serial.py +++ b/src/escpos/printer/serial.py @@ -43,8 +43,8 @@ def dependency_pyserial(func): """Throw a RuntimeError if pyserial not installed.""" if not is_usable(): raise RuntimeError( - "Printing with Serial requires the pyserial library to" - "be installed. Please refer to the documentation on" + "Printing with Serial requires the pyserial library to " + "be installed. Please refer to the documentation on " "what to install and install the dependencies for pyserial." ) return func(*args, **kwargs) diff --git a/src/escpos/printer/usb.py b/src/escpos/printer/usb.py index e5d2dbe..79700b4 100644 --- a/src/escpos/printer/usb.py +++ b/src/escpos/printer/usb.py @@ -42,8 +42,8 @@ def dependency_usb(func): """Throw a RuntimeError if usb not installed.""" if not is_usable(): raise RuntimeError( - "Printing with USB connection requires a usb library to" - "be installed. Please refer to the documentation on" + "Printing with USB connection requires a usb library to " + "be installed. Please refer to the documentation on " "what to install and install the dependencies for USB." ) return func(*args, **kwargs) diff --git a/src/escpos/printer/win32raw.py b/src/escpos/printer/win32raw.py index d084436..7204b45 100644 --- a/src/escpos/printer/win32raw.py +++ b/src/escpos/printer/win32raw.py @@ -45,8 +45,8 @@ def dependency_win32print(func): """Throw a RuntimeError if win32print not installed.""" if not is_usable(): raise RuntimeError( - "Printing with Win32Raw requires a win32print library to" - "be installed. Please refer to the documentation on" + "Printing with Win32Raw requires a win32print library to " + "be installed. Please refer to the documentation on " "what to install and install the dependencies for win32print." ) return func(*args, **kwargs)