From f79c8d56acaf17e89fc2045c063604a7d3a43cd0 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Sat, 23 Jul 2022 20:48:21 +0800 Subject: [PATCH] Fix --- src/document/printer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/document/printer.js b/src/document/printer.js index 9d20c67d1..30575d987 100644 --- a/src/document/printer.js +++ b/src/document/printer.js @@ -433,7 +433,6 @@ function printDocToString(doc, options) { contentFlatCmd, [], rem, - options, lineSuffix.length > 0, true ); @@ -525,7 +524,7 @@ function printDocToString(doc, options) { case DOC_TYPE_LINE_SUFFIX_BOUNDARY: if (lineSuffix.length > 0) { - cmds.push({ ind, mode, doc: { type: "line", hard: true } }); + cmds.push({ ind, mode, doc: hardlineWithoutBreakParent }); } break;