Skip to content

Commit

Permalink
Merge pull request #12 from etopeter/init
Browse files Browse the repository at this point in the history
fix: Added trim at the end of the block to match Logseq saved block. …
  • Loading branch information
etopeter authored Jan 15, 2023
2 parents 8819884 + 59fea66 commit 83c1c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async function updatePage(page: PageEntity, blocks: Array<IBatchBlock>) {
if (updateBlock || updateBlock === null) {
// Update only if content is different
const currentBlock = await logseq.Editor.getBlock(_first!.uuid);
if (currentBlock?.content !== blocks[0].content) {
if (currentBlock?.content !== blocks[0].content.trim()) {
if (currentBlock) {
abLog("index", currentBlock.content.toString());
}
Expand Down Expand Up @@ -550,6 +550,7 @@ const fetchAudiobookshelf = async (inBackground = false) => {
singlePageImportTargetBlock.uuid,
blockTitle
));
updateStatus("Audiobookshelf Import complete")
}
};

Expand Down

0 comments on commit 83c1c03

Please sign in to comment.