New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mobile allows CRs in title which is inconsistent behaviour with desktop + can lead to data loss #5482
Comments
|
For sake of completion I created a new note with the same content and checked the mobile db which shows the full content within notes.title. sqlite> select title, body from notes where id="f01f47bdf8a64ac59878f18018d6e73f"; |
|
is this issue still up? |
|
I think I might have been able to solve this myself but I want to check a few things before I submit a PR as it appears the multiline functionality in the title was intentional - but only for Android... So the "fix" was simply to change this line:
to {false}
However it is clearly set up intentionally for platforms that aren't ios? joplin/packages/app-mobile/components/screens/Note.tsx Lines 96 to 97 in 3ddfa0b
joplin/packages/app-mobile/components/screens/Note.tsx Lines 974 to 975 in 3ddfa0b
So basically, I'm happy to submit a simple PR to change that single line (it does stop you making multiple lines when tested on an android emulator (side note - that was fun to set up........)) but the fact it seems to have been implemented intentionally is what is throwing me. Is anyone aware of why this exists and was implemented as Android only functionality? If that change is the fix then is there any reason the other linked lines shouldn't be culled entirely? |
Environment
Mobile
Joplin 2.3.4
Database v39
Android 11
USING BETA EDITOR
Desktop
Joplin 2.3.5 (prod, win32)
Client ID: a4ed20b9be424a1c8c3e5f3cc355c345
Sync Version: 3
Profile Version: 39
Keychain Supported: Yes
Revision: 819af3c
Windows 10
Steps to reproduce
Mobile seems happy to display the title including the CRLF:
Notes panel:


Viewer:
Desktop puts extra lines into the body of the note (but not all of it - "1CR" is missing):
Content of desktop database ("1CR" has been lost):
Content of sync target md file:
Describe what you expected to happen
Mobile should not be allowed to put CRs into titles. If it is allowed to then all the data should be visible to the desktop app - current behaviour casuses some data to be lost.
Behaviour of pressing return on mobile keyboard should move cursor to note body
Logfile
syncReport-1632085837890.txt
log.txt
The text was updated successfully, but these errors were encountered: