-
Notifications
You must be signed in to change notification settings - Fork 95
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
Trim multiple whitespace characters when pasting #924
Trim multiple whitespace characters when pasting #924
Conversation
Codecov Report
@@ Coverage Diff @@
## master #924 +/- ##
=======================================
Coverage 20.20% 20.20%
=======================================
Files 20 20
Lines 1440 1440
=======================================
Hits 291 291
Misses 1149 1149
Flags with carried forward coverage won't be shown. Click here to find out more. |
3210ddf
to
b441a87
Compare
Fixes nextcloud#713 Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
b441a87
to
9f6eab9
Compare
9f6eab9
to
9903c69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to trim each line additionally. Let's have the example to paste:
100 g Reis
50 ml Wasser
1 Prise Salz
This will cause a single space before the 2nd and 3rd row.
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
f359c44
to
0eae3f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me. LGTM
Fixes #713
Now, when multiple whitespace characters appear when pasting recipe ingredients, instructions, etc. they are replace by a single space.