Skip to content

Commit a8d1beb

Browse files
committed
Update useDraftSync.ts
1 parent e539ec1 commit a8d1beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/array/src/renderer/features/message-editor/tiptap/useDraftSync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function editorContentToTiptapJson(content: EditorContent): JSONContent {
5858
if (i > 0) {
5959
flushParagraph();
6060
}
61-
const lineParts = paragraphParts[i].split(/ \n|\n/);
61+
const lineParts = paragraphParts[i].split(/ {2}\n|\n/);
6262
for (let j = 0; j < lineParts.length; j++) {
6363
if (j > 0) {
6464
currentParagraphContent.push({ type: "hardBreak" });

0 commit comments

Comments
 (0)