From c07681fafc4110b24ba0b2fef7794a525285d68a Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Fri, 23 Oct 2020 08:58:29 -0700 Subject: [PATCH] publish: don't insert newline Fixes #3596 --- pkg/interface/src/views/apps/publish/components/EditPost.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/src/views/apps/publish/components/EditPost.tsx b/pkg/interface/src/views/apps/publish/components/EditPost.tsx index 8a6ead46a..f4932a8ac 100644 --- a/pkg/interface/src/views/apps/publish/components/EditPost.tsx +++ b/pkg/interface/src/views/apps/publish/components/EditPost.tsx @@ -14,7 +14,7 @@ interface EditPostProps { export function EditPost(props: EditPostProps & RouteComponentProps) { const { note, book, noteId, api, ship, history } = props; - const body = note.file.slice(note.file.indexOf(";>") + 2); + const body = note.file.slice(note.file.indexOf(";>") + 3); const initial: PostFormSchema = { title: note.title, body,