fix: error happens when parsing readme content (#1873)

This commit is contained in:
Lucas.Xu 2023-02-20 18:28:09 +08:00 committed by GitHub
parent 8a2f5fe789
commit 3fd4371d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,8 @@ pub use document_serde::*;
pub use editor::*;
#[inline]
// Return the read me document content
pub fn initial_read_me() -> String {
let document_content = include_str!("READ_ME.json");
let transaction = make_transaction_from_document_content(document_content).unwrap();
transaction.to_json().unwrap()
return document_content.to_string();
}