Hi there! I'm using WorldAnvil (the Plutarch editor) in Firefox on Linux. My default "quick notes" app is Mousepad, a simple app like Notepad. When I copy data from it, it only provides the raw text in text/plain format. When I paste this into Plutarch, it trims all of the newlines regardless of how many I put and just replaces them with spaces. So this:
(Mousepad)
Line 1
Line 2
Line 3
Becomes when pasted into Plutarch:
Line 1 Line 2 Line 3
I've confirmed that the original copied values only have
, no \r if that matters.
This makes it hard to add notes from out-of-game into WorldAnvil directly.
As a workaround, what I do now is copy the text and put it into an editor that can convert to text/html, or put both text/plain and text/html into the clipboard. Then Plutarch grabs the data from the HTML type and formats it properly, preserving newlines, because the
characters are all replaced with <br> which it can understand.
So this clipboard:
----- text/plain -----
"- Line 1
- Line 2
"
Becomes this:
----- text/html -----
"- Line 1<br><br>- Line 2<br><br>"
----- text/plain -----
"- Line 1
- Line 2
"
That being said, I'd like the ability to paste directly without having to middle-man the text like this.
Thanks guys!
Plutarch editor
In a delicious twist of irony, since the bug reporter uses Plutarch, it is parsing slash n characters properly and makes the above look weird... but hopefully there's enough context that you can see where they're supposed to be!
Hey, thanks for reporting and providing details. Unfortunately we are not planning to make this implementation right now, though I understand it can be frustrating in use - we have noted it down to explore how to deal with in the future.