emberjs / emberjs/ember.js

Rendering in <style> tags causes extra line breaks

Open
#21,034 7 comments 0 reactions 0 assignees View on GitHub
glimmervm
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

Code
```hbs

{{#if this.shadow}}
{{#in-element this.shadow}}
{{#unless @omitStyles}}

@import '{{this.vendor}}';
@import '{{this.app}}';

{{/unless}}

{{yield}}
{{/in-element}}
{{/if}}
```

Output (just the style part)
![image](https://user-images.githubusercontent.com/199018/149647188-ea777baa-a588-49cd-a39a-e4f9440b863d.png)

Expected:
```html

@import '/assets/vendor.css';
@import '/assets/limber.css';

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.