Skip to content

Commit 03d8339

Browse files
committed
dont collapse whitespace for structual directive in angular and vue
1 parent 92ccc2d commit 03d8339

6 files changed

Lines changed: 66 additions & 48 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!-- template is collapsable and the newline is preserved -->
2+
<h1>
3+
404
4+
<ng-container v-if="resource">
5+
the {{ resource }} was
6+
</ng-container>
7+
not found
8+
</h1>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- template is collapsable and the newline is preserved -->
2+
<h1>
3+
404
4+
<ng-container v-if="resource">the {{ resource }} was</ng-container>
5+
not found
6+
</h1>

packages/prettyhtml-formatter/test/fixtures/white-space-template/input.html renamed to packages/prettyhtml-formatter/test/fixtures/structural-directives-vue/input.html

File renamed without changes.

packages/prettyhtml-formatter/test/fixtures/white-space-template/output.html renamed to packages/prettyhtml-formatter/test/fixtures/structural-directives-vue/output.html

File renamed without changes.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
module.exports = [
2+
'a',
3+
'abbr',
4+
'acronym',
5+
'b',
6+
'basefont',
7+
'big',
8+
'bdi',
9+
'bdo',
10+
'blink',
11+
'button',
12+
'cite',
13+
'code',
14+
'data',
15+
'del',
16+
'dfn',
17+
'em',
18+
'font',
19+
'i',
20+
'input',
21+
'ins',
22+
'kbd',
23+
'keygen',
24+
'label',
25+
'mark',
26+
'marquee',
27+
'meter',
28+
'nobr',
29+
'output',
30+
'progress',
31+
'q',
32+
'ruby',
33+
's',
34+
'samp',
35+
'select',
36+
'small',
37+
'spacer',
38+
'span',
39+
'strong',
40+
'sub',
41+
'sup',
42+
'textarea',
43+
'time',
44+
'tt',
45+
'u',
46+
'var',
47+
// vue
48+
'template',
49+
// angular
50+
'ng-container',
51+
'ng-template'
52+
]

packages/rehype-minify-whitespace/list.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)