From b85385aedc15bf6f39223a36a220815fcda4760c Mon Sep 17 00:00:00 2001 From: Tourjmen Souhail <95188930+souhailtourjmen@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:19:52 +0000 Subject: [PATCH] style: format code for ESLint best practices #197 --- src/printer/printHelpers/addTextLine.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/printer/printHelpers/addTextLine.ts b/src/printer/printHelpers/addTextLine.ts index 7556547..297b367 100644 --- a/src/printer/printHelpers/addTextLine.ts +++ b/src/printer/printHelpers/addTextLine.ts @@ -13,12 +13,14 @@ export async function addTextLine( PrinterConstants.PRINTER_SETTING_PAPERWIDTH ); - const charsPerLine = customCharsPerLine ? customCharsPerLine : - printerCharsPerLinePerWidth[paperWidth || DEFAULT_PAPER_WIDTH]; + const charsPerLine = customCharsPerLine + ? customCharsPerLine + : printerCharsPerLinePerWidth[paperWidth || DEFAULT_PAPER_WIDTH]; const text = spaceBetween( Math.ceil(charsPerLine / printer.currentFontWidth), params ); + await printer.addText(text); }