-
Notifications
You must be signed in to change notification settings - Fork 375
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
List line breaks should ignore the list prefix #2502
Comments
Unlikely feasible with the way how Android standard EditText component is implemented. |
We can play around with line breaking strategy a little. https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy |
|
Setting
Helps a lot but can
|
@gsantner We can
IMO we switch and see if anyone complains :) |
Suggestion: There is a function named like isPerformanceDevice in AppSettings to make a certain differenciation. Do suggest to apply the more complex rule by that condition, fixed |
After some more testing I have decided not to make a PR with this change. The docs say that the 'simple' break strategy is used to prevent text 'jumping' as one types. This does seem to happen more with 'balanced' or 'high quality'. Overall I think appearance is less important than performance in edit mode. I feel like I spend 50% of my Markor development / hobby time fighting with Android's TextView / EditText. So many bad decisions in it's design... |
Totally agree, it's just not made for many things. However, it works good enough for majority of things :-). Thanks |
Description
with wrapping turned on, long lines in a list will break at the list prefix (dash or number) if they don't have any spaces to break at. this leaves gaps in the list. this happens with for example, long links or hashes
i think the wrapping logic should skip the list prefix. example of how obsidian and vscode respectively do it:
this doesn't happen in preview mode, only the editor. mainly interested in markdown, but this seems to happen with any text format
Steps to reproduce
Information
Android version: 11
Device: motorola moto g8 power
App Version: 2.14
Source
F-Droid
Format / File type
Not specific
Additional info / Log
The text was updated successfully, but these errors were encountered: