question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`force-expand-multiline` doesn't work as expected

See original GitHub issue

Description

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"

Related https://github.com/octref/vetur/issues/99

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:14
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
bitwisemancommented, Jun 30, 2018

fixed in 1.7.6

5reactions
msmolciccommented, Jul 20, 2017

What’s the status on this one? I’d really love to see this fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found