From fc55e557dad94754be56a174eee54a1a76d86a56 Mon Sep 17 00:00:00 2001 From: ThunderYu <616968343@qq.com> Date: Mon, 13 May 2024 22:12:32 +0800 Subject: [PATCH] fix: disable line break drawing in print and clean mode --- src/editor/core/draw/Draw.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index b13bec5..b88f560 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1891,6 +1891,8 @@ export class Draw { // 换行符绘制 if ( isDrawLineBreak && + !isPrintMode && + this.mode !== EditorMode.CLEAN && !curRow.isWidthNotEnough && j === curRow.elementList.length - 1 ) {