Closed notthehulk closed 10 months ago
I don't know, I don't use Word or any other such editor. Any examples of what you're copying and how it looks/should look?
Hi! Absolutely, no problem at all. So when I open it in the viewer, it looks like this:
Perfectly normal, just how it should look. But when you copy and paste it directly, it looks like this:
All the bold and italic are preserved, but the soft line breaks vanish. The other alternative is to paste without formatting, which results in this:
Where the line breaks are preserved, but the formatting is gone. It's been a while since I've updated my logs, but I don't remember this being a problem before, so it's definitely confusing! I've tried using it in Word, Google Docs, and an .rtf editor, and it's having the same trouble.
It seems to be reading all soft line breaks as spaces, I hope that helps!
I should mention too that I've tried in on the desktop version and the in-browser version, and it has the same problem in both.
DHT tries to be similar to Discord when it comes to how messages are displayed in the browser, so it turns out both work the same. If you select a multi-line message on Discord and copy/paste it into one of these editors, it will also not have any line breaks.
Not sure what's the best way to fix it, or if a workaround is enough - one possibility is turning off message formatting in the viewer settings, and then you will get raw Markdown which you can use as-is with a Markdown viewer, or convert into a Word document or whatever other format you want.
Hmm, that's not ideal! I wonder why it didn't used to do this, but it is now.
I did try turning off the message formatting in the viewer, and copy/pasted it. If you paste it without formatting, it's not pretty messy workaround, but it's better than nothing! But you do have to go through and put in all the bold and italic manually.
Turning off message formatting displays raw Markdown, there are tools to convert it automatically but I don't have personal experience. The formatted text might be fixable, I'm guessing the issue is that Word does not understand the specific formatting Discord and DHT use for the messages. There's also the possibility of adding ways to export messages into other formats instead of copy/pasting, but there's a lot of possibilities and not enough time :P
Thanks so much for all your help! DHT is amazing, and I'm so grateful for all the work you've put into it!
Closing as answered with available workarounds.
Hi!
I'm need to copy and paste my logs from the viewer to a word document and I've come across a big ole' problem...
When I copy and paste, either it keeps ALL the formatting (bold, italic, etc), but none of the line breaks, Or I can post without formatting, and keep the line breaks, but none of the formatting!
Any help you can offer would be really appreciated, I'm not sure how to fix it!