Skip to content

Commit

Permalink
Merge pull request #13 from nzzdev/fix-prevent-line-break
Browse files Browse the repository at this point in the history
fix option preventLineBreak
  • Loading branch information
fromdusttilldawn authored Feb 7, 2022
2 parents a269fea + fbc7669 commit 59a3d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/components/TextBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
let text = highlightedText.text;
if (highlightedText.preventLineBreak) {
text = text.replace(/ /g, " ");
// Prevent line break, by replacing all whitespace characters (including thin spaces)
text = text.replace(/\s/g, " ");
}
const highlightedTextColor =
Expand Down

0 comments on commit 59a3d26

Please sign in to comment.