Merge pull request #3789 from tylershuster/publish-newline

publish: don't insert newline
This commit is contained in:
matildepark 2020-10-27 13:26:47 -04:00 committed by GitHub
commit 880af1e7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,