-
Notifications
You must be signed in to change notification settings - Fork 874
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
#6278: discard newlines, collapse and trim whitespaces. #6280
Conversation
Makes sense - will leave @MartinBalin to test usage and merge - rc4 will be Thursday earliest. Slightly surprised at treating |
@neilcsmith-net good catch; I will be appending/changing this PR as there are more places affected by the vscode change. I'll unify the handling in the stripping routine. |
0bd05e4
to
afd61d1
Compare
Restructured, added Changelog in a separate commit. |
afd61d1
to
76e8810
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.
Looks fine. Thanks !
} | ||
} | ||
return sb.toString(); | ||
return Utils.html2plain(s, true).trim(); |
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.
No need to call trim()
again.
ch = ' '; // NOI18N | ||
whitespace = true; | ||
} else { | ||
if (insertWSIfMissing) { |
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.
Is this ever true
?
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.
result of merging two implementations together ;)
…lize whitespace handling for quickpicks
9798aa5
to
748ef78
Compare
Squashed to just have just changelog update separate. |
@neilcsmith-net was this merged to master and release 19 branches? The bug can be still seen in build from master... thanks |
@MartinBalin sync to master #6276 was only done a few hours ago so likely your master is not up to date? Ran out of time to check and sync after doing 19-rc4 on Friday. |
No problem and thank you. |
Note that there's always a delay (just usually not that long) between merging to the release branch and to master. We do the release candidate build in between the two sync PRs to check everything is OK before merging into master. |
NBLS
New from Template
command implementation strips HTML from description of templates, but leaves whitespaces as they were in the html source, so potentially more (white)spaces than necessary, including tab/newline control characters. vscode now (from June's releaase 1.80.2) starts to display control characters in quickpick UI - which looks ugly, see #6278.This PR:
Should apply only to description of templates.
Please do consider to include this fix in NB(LS) 19 release, the New from Tempalate looks really ugly.