`force-expand-multiline` doesn't work as expected
See original GitHub issueDescription
force-expand-multiline
doesn’t work as expected.
Input
The code looked like this before beautification:
<template>
<div
class="test"
@click="test"
>
<input
ref="test"
v-if="test"
>
<div>
<span>test</span>
</div>
</div>
</template>
Expected Output
The code should have looked like this after beautification:
<template>
<div
class="test"
@click="test"
>
<input
ref="test"
v-if="test"
>
<div>
<span>test</span>
</div>
</div>
</template>
Actual Output
The code actually looked like this after beautification:
> html-beautify --version
1.6.12
> html-beautify -f test.html -A "force-expand-multiline"
<template>
<div
class="test"
@click="test"
>
<input
ref="test"
v-if="test"
>
<div>
<span>test</span>
</div>
</div>
</template>%
Steps to Reproduce
Environment
OS: macOS 10.12.4
Settings
> html-beautify -f test.html -A "force-expand-multiline"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:17 (6 by maintainers)
Top Results From Across the Web
How do you stop Prettier in VS code splitting attributes onto ...
A quick fix is to go to Prettier Extension Settings (ctrl + shift + X) and in Prettier Extension Settings search for "Print...
Read more >Rationale - Prettier
A consequence of this is that long singleline objects are automatically expanded, but short multiline objects are never collapsed.
Read more >Syntax - The Apache Groovy programming language
A multiline comment starts with /* and can be found at any position in the line. The characters following /* will be considered...
Read more >overflow-wrap | CSS-Tricks
The overflow-wrap property in CSS allows you to specify that the browser can break a line of text inside the targeted element onto...
Read more >How to wrap text in Excel automatically and manually - Ablebits
Click the Wrap Text button to get longer text to appear on multiple lines. Method 2. Press Ctrl + 1 to open the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed in 1.7.6
What’s the status on this one? I’d really love to see this fixed.