vscode-liquid icon indicating copy to clipboard operation
vscode-liquid copied to clipboard

Formatting splits td tags

Open MiBuena opened this issue 4 years ago • 3 comments

When I try to format a table, it splits some of the td tags to 2 lines like this.

        <td>{{Product.TotalSum}}
            €</td>

Is there a way to prevent td tags from breaking?

MiBuena avatar Jun 01 '20 17:06 MiBuena

Use {{ product.totalsum | prepend: “€ ”}} this can also be fixed with formatting option applied to HTML but I’m unsure which option controls that aspect.

panoply avatar Jun 01 '20 18:06 panoply

Thank you for your answer!

However, since we are talking about a very long document - it will require a lot of effort to change it everywhere.

If anyone knows which option controls this - it will help me very much!

MiBuena avatar Jun 01 '20 18:06 MiBuena

Select the tag, ‘cmd+shift+d‘ in vscode will allow you to select all tags that match that selection, might be of some help.

panoply avatar Jun 01 '20 21:06 panoply

This can be configured using Prettify rules. Take a look at v3.0.0 Release Notes and the new Readme

panoply avatar Sep 28 '22 09:09 panoply