-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
π Describe the Bug
Components are not formatted correctly when <template> contains unicode characters such as β or Β© rather than ✓ or ©.
π¬ Minimal Reproduction
Failing test added in #221
import Component from '@glimmer/component';
export interface Signature {
Element: HTMLElement,
Args: {}
Yields: []
}
/** It's a component */
class MyComponent extends Component<Signature> {
<template>
β
</template>
}
function hello() {
return 'Hello';
}
function world() {
return 'World';
}π Actual Behavior
import Component from "@glimmer/component";
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
/** It's a component */
class MyComponent extends Component<Signature> {
<template>β</template>
}
function hello() {
return "Hello";
}
function world() {
return "World";
}Note: The newlines are removed between the helper functions.
π€ Expected Behavior
import Component from "@glimmer/component";
export interface Signature {
Element: HTMLElement;
Args: {};
Yields: [];
}
/** It's a component */
class MyComponent extends Component<Signature> {
<template>β</template>
}
function hello() {
return "Hello";
}
function world() {
return "World";
}π Environment
- prettier-plugin-ember-template-tag version: 2.0.0
- ember-template-imports version (if applicable): 4.0.0
- content-tag version (if applicable): 1.2.2
- eslint-plugin-ember version (if applicable): 12.0.0-alpha.4
β Additional Context
Replacing the direct symbols with the HTML entity codes like ✓ fixes the formatting issue (and is preferred anyway)
Metadata
Metadata
Assignees
Labels
No labels