You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Text auto saves unchanged file upon opening, no editing, due to a normalizer behavior. See videos:
To Reproduce
From the video, you need to restore a file and needs to have one specific thing, a trailing newline::
restored version : 150 bytes, tail "...old line :)\n\n🌴\n"
what Text wrote : 149 bytes, tail "...old line :)\n\n🌴"
first difference at byte 149: restored "\n" vs written ""
Expected behavior
The serialiser should preserve a trailing newline, or SaveService should not write when the only difference is its own normalization. It's easy to demonstrate without Notes at all - put a markdown file ending in a newline in Files, open it in the Viewer, don't touch it, and a version appears within ~10 seconds.
Screenshots
text_in_files_viewer.mp4text_editor.mp4
Server details:
Nextcloud version: master
PHP Version: -
Database: -
I use the docker dev setup
Client details:
OS: Win11pro
Browser: FF
Browser version: 153.0.4
Device: Desktop
Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
Describe the bug
Text auto saves unchanged file upon opening, no editing, due to a normalizer behavior. See videos:
To Reproduce
From the video, you need to restore a file and needs to have one specific thing, a trailing newline::
Expected behavior
The serialiser should preserve a trailing newline, or
SaveServiceshould not write when the only difference is its own normalization. It's easy to demonstrate without Notes at all - put a markdown file ending in a newline in Files, open it in the Viewer, don't touch it, and a version appears within ~10 seconds.Screenshots
text_in_files_viewer.mp4
text_editor.mp4
Server details:
Client details:
Logs
Nextcloud log (data/nextcloud.log)
Browser log