mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(getPageContentText): ensure proper spacing in concatenated text content
Modify getPageContentText.js to use space delimiter when joining text blocks instead of empty string. This change affects three functions: getPageContentText, getTextArray, and getBlockContentText to improve text readability and proper spacing between concatenated content blocks.
This commit is contained in:
@@ -19,7 +19,7 @@ export function getPageContentText(post, pageBlockMap) {
|
||||
result.push(getBlockContentText(blockContent))
|
||||
}
|
||||
}
|
||||
return result.join('')
|
||||
return result.join(' ')
|
||||
}
|
||||
|
||||
function getTextArray(textArray) {
|
||||
@@ -40,7 +40,7 @@ export function getPageContentText(post, pageBlockMap) {
|
||||
result.push(getBlockContentText(blockContent))
|
||||
}
|
||||
}
|
||||
return result.join('')
|
||||
return result.join(' ')
|
||||
}
|
||||
|
||||
function getBlockContentText(id) {
|
||||
@@ -80,7 +80,7 @@ export function getPageContentText(post, pageBlockMap) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.join('')
|
||||
return result.join(' ')
|
||||
}
|
||||
|
||||
const postId = post.id
|
||||
|
||||
Reference in New Issue
Block a user