Skip to content

empty-line-wrap-fix#103677

Merged
aeschli merged 1 commit intomicrosoft:masterfrom
amagupta-collab:empty-line-wrap-fix
Aug 12, 2020
Merged

empty-line-wrap-fix#103677
aeschli merged 1 commit intomicrosoft:masterfrom
amagupta-collab:empty-line-wrap-fix

Conversation

@amagupta-collab
Copy link
Contributor

This PR fixes #
Issue Fixed - #78219
While using Emmet command - Wrap individual lines with abbreviation, empty lines were also abbreviated.

Fix
After parsing using emmet helper, we get the parsed tree where every node represents the line. Node contains name (tag which will be used to wrap line) , value (content of line).
Fix is to walk the tree and if value isempty and isnotSelfCLosing tag and doesnt contain any children, assign the name field as empty.

How to test
have a text in editor with empty lines, select all lines, CTRL+SHIFT+P, select emmet:wrap individaul lines with abbr and type p*

@ghost
Copy link

ghost commented Jul 31, 2020

CLA assistant check
All CLA requirements met.

@rebornix rebornix added the emmet Emmet related issues label Aug 2, 2020
@aeschli aeschli merged commit edd867f into microsoft:master Aug 12, 2020
@aeschli aeschli added this to the August 2020 milestone Aug 12, 2020
@aeschli
Copy link
Contributor

aeschli commented Aug 12, 2020

Thanks @amagupta-collab !

@sbatten
Copy link
Member

sbatten commented Sep 4, 2020

@aeschli should this close the linked issue #78219?

@aeschli
Copy link
Contributor

aeschli commented Sep 7, 2020

Yes, thanks @sbatten !

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

emmet Emmet related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants