Skip to content

Emmet abbreviation with (...)*n doesn't work #27784

Closed

Description

@roblourens

#27316

  • div*2 produces 2 divs
  • (div)*2 and (div>span)*2 expand -> the abbreviation is replaced with empty string

Works with old emmet

Activity

  1. added
    bug
    emmet
    on May 31, 2017
  2. ramya-rao-a commented on Jun 2, 2017

    @ramya-rao-a
    Contributor

    Sergey Chikuyonok (@sergeche) abbreviations like (...)*n are getting expanded to empty string when using https://github.com/emmetio/expand-abbreviation

    For example: The below case

    image

    expands to just

    <div>
        <dl></dl>
    </div>
    <footer>
        <p></p>
    </footer>
    

    Is this a known issue?

  3. added
    upstream
    on Jun 2, 2017
  4. jens1o commented on Jun 3, 2017

    @jens1o
    Contributor

    No, it is not a known issue. The old emmet IS able to resolve it.

    Edit: Unfortunately, I can't provide a gif because it would be more than 10MB. :/

  5. ramya-rao-a commented on Jun 3, 2017

    @ramya-rao-a
    Contributor

    Jens Hausdorf (@jens1o) yes, it works in old emmet.

    I meant to ask if it is a known issue in the new one or Sergey Chikuyonok (@sergeche) would prefer me logging a new issue.

    Thanks for looking into it though. Let us know if you find any other feature that previously worked but doesn't now with the new emmet

  6. jens1o commented on Jun 3, 2017

    @jens1o
    Contributor

    I do, don't mention it. 😉

  7. ramya-rao-a commented on Jun 19, 2017

    @ramya-rao-a
    Contributor

    Logged emmetio/atom-plugin#23 for upstream issue

  8. ramya-rao-a commented on Jul 19, 2017

    @ramya-rao-a
    Contributor

    Sergey Chikuyonok (@sergeche) I have created a PR to fix this issue. emmetio/output-renderer#1

    Can you please take a look.

    Grouping seems to be one of the important cases in emmet abbreviations.

  9. added a commit that references this issue on Jul 28, 2017
  10. jens1o commented on Jul 29, 2017

    @jens1o
    Contributor

    It has been merged, so this issue can be resolved, can't it?

  11. ramya-rao-a commented on Aug 1, 2017

    @ramya-rao-a
    Contributor

    Re-opening as nested groups are still not working as expected

    Eg: (div>dl>(dt+dd)*2) eventually gets expanded to

        <div>
           <dl></dl>
       </div>
       <dt></dt>
       <dd></dd>
       <dt></dt>
       <dd></dd>
    

    instead of

        <div>
           <dl>
              <dt></dt>
              <dd></dd>
              <dt></dt>
             <dd></dd>
           </dl>
       </div>
    
    

    PR to upstream repo has been submitted emmetio/abbreviation#4

  12. jens1o commented on Aug 1, 2017

    @jens1o
    Contributor

    Then you might want to actually open it again? Ramya Rao (@ramya-rao-a)

  13. ramya-rao-a commented on Aug 1, 2017

    @ramya-rao-a
    Contributor

    haha! thought I did.

  14. ramya-rao-a commented on Aug 1, 2017

    @ramya-rao-a
    Contributor

    Upstream PR emmetio/abbreviation#4 is merged and the changes are pulled into VS Code as well.

  15. locked and limited conversation to collaborators on Nov 17, 2017
  16. added a commit that references this issue on Sep 6, 2026
    af7d58a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugemmetupstreamverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions