From ea7da0cde901885b6517f02de1df0a624b4e9d42 Mon Sep 17 00:00:00 2001 From: varkor Date: Sat, 8 Feb 2020 02:56:49 +0000 Subject: [PATCH] Properly trim tikz-cd output --- src/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.js b/src/ui.js index bf1c1290..c9f6f088 100644 --- a/src/ui.js +++ b/src/ui.js @@ -511,8 +511,8 @@ QuiverExport.tikz_cd = new class extends QuiverExport { (parameters.length > 0 ? `, ${parameters.join(", ")}` : "") + "] "; } - // Remove the trailing space. - output = output.slice(0, -1); + // Remove any trailing whitespace. + output = output.trim(); } return wrap_boilerplate(output);