Color markings for .log files, not for .txt files #5253
Labels
bug
Something isn't working
feature: formatting
Features related to text formatting and node types
good first issue
Good for newcomers
Describe the bug
Allright guys, I'm at a loss. I've spend the better part of today trying things, but I'm not getting this done. My problem is that Text opens my .log files correctly, but with colored text and also parts are italic. It recognizes the .log files as plain text correctly, because I have added the log file type as text/plain to mimetypemapping.json. So no rich editing, like it's supposed to do. But it appears to be formatting the text in some way anyway. The .log files are essentially just text files, but with a .log extension. If I change the extension in Nextcloud to .txt, the file loads correctly as plain black text without any formatting.
Edit: FYI: the log files in question have nothing to do with Nextcloud or Text, they are just log files for things I'm running on a server.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Any file type that has been added as [text/plain] should be shown just like that: as plain text. (right?)
Screenshots
File with .log extension
Same file but now with .txt extension
Server details:
Client details:
Nextcloud log (data/nextcloud.log)
Nothing is showing in the logs
Browser log
I'll add this when needed.
The text was updated successfully, but these errors were encountered: