From adfbaa603c6ed06c4a87399b592ceb2933a43989 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Thu, 9 Mar 2023 11:18:35 -0600 Subject: [PATCH] Fix whitespace in note publish --- ROADMAP.md | 2 -- src/partials/Compose.svelte | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index c4037fc1..916b87ff 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,8 +1,6 @@ # Current - [ ] Check mention interpolation indexes nevent1qqsx27cspgfcj93kryt2zpzzt5ua60rtucckvcmsrqc949e6t83jaxspzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxg46e8sv -- [ ] Muffle -> mute - - Add mute button on profile - [ ] Show loading/success on zap invoice screen - [ ] Fix iOS/safari/firefox - [ ] Update https://nostr.com/clients/coracle diff --git a/src/partials/Compose.svelte b/src/partials/Compose.svelte index f6f6a664..011bde70 100644 --- a/src/partials/Compose.svelte +++ b/src/partials/Compose.svelte @@ -172,7 +172,7 @@ // For whatever reason the textarea gives us 2x - 1 line breaks let content = input.innerText.replace(/(\n+)/g, x => - repeat("\n", Math.ceil(x.length / 2)).join("") + repeat("\n", Math.round(x.length / 2)).join("") ) const validMentions = sortBy(prop("end"), reject(prop("invalid"), mentions))