mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1576 from omnivore-app/fix/highlight-spacing
Fix issue with spaces dissapearing when highlights are created
This commit is contained in:
commit
c75867464b
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ export function makeHighlightNodeAttributes(
|
|||
// If we are not in preformatted text, prevent hardcoded \n,
|
||||
// we'll create new-lines based on the startsParagraph data
|
||||
const text = isPre ? rawText : rawText.replace(/\n/g, '')
|
||||
const newTextNode = document.createTextNode(text)
|
||||
const newTextNode = document.createTextNode(rawText)
|
||||
|
||||
if (!highlight) {
|
||||
return parentNode?.insertBefore(newTextNode, nextSibling)
|
||||
|
|
|
|||
Loading…
Reference in a new issue