Plutarch doesn't properly handle newlines in clipboard data if `text/plain` is the only content type

closed
· Editor: visual (modern editor) ·
By Sophron on 07/03/2026
· Assigned to katerinach

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!

Steps to Reproduce

  1. Open an editor that only puts text/plain on the clipboard. Add as many newlines as you want.
  2. Paste into an article using the Plutarch editor.
  3. Observe all the newlines get squished into a single space character, and the resulting text is all put onto one line.

Operating System

Linux

Browser

Firefox

Related Entity

Plutarch editor

History

Sophron @ 03 Jul, 2026 09:57:54

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!

katerinach @ 08 Jul, 2026 10:18:54 Assignee

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.

katerinach @ 08 Jul, 2026 10:19:15 Assignee
set this bug to closed
katerinach @ 08 Jul, 2026 10:19:24 Assignee
Assigned katerinach