mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Fix whitespace in note publish
This commit is contained in:
parent
c4c72abddc
commit
adfbaa603c
@ -1,8 +1,6 @@
|
|||||||
# Current
|
# Current
|
||||||
|
|
||||||
- [ ] Check mention interpolation indexes nevent1qqsx27cspgfcj93kryt2zpzzt5ua60rtucckvcmsrqc949e6t83jaxspzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxg46e8sv
|
- [ ] Check mention interpolation indexes nevent1qqsx27cspgfcj93kryt2zpzzt5ua60rtucckvcmsrqc949e6t83jaxspzemhxue69uhhyetvv9ujumn0wd68ytnzv9hxg46e8sv
|
||||||
- [ ] Muffle -> mute
|
|
||||||
- Add mute button on profile
|
|
||||||
- [ ] Show loading/success on zap invoice screen
|
- [ ] Show loading/success on zap invoice screen
|
||||||
- [ ] Fix iOS/safari/firefox
|
- [ ] Fix iOS/safari/firefox
|
||||||
- [ ] Update https://nostr.com/clients/coracle
|
- [ ] Update https://nostr.com/clients/coracle
|
||||||
|
@ -172,7 +172,7 @@
|
|||||||
|
|
||||||
// For whatever reason the textarea gives us 2x - 1 line breaks
|
// For whatever reason the textarea gives us 2x - 1 line breaks
|
||||||
let content = input.innerText.replace(/(\n+)/g, x =>
|
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))
|
const validMentions = sortBy(prop("end"), reject(prop("invalid"), mentions))
|
||||||
|
Loading…
Reference in New Issue
Block a user