nette/netbeans-plugin — Issue #33: Latte autoformatter is much worse that the built in one for HTML and crashes in NB 7.1
Author: josefsabl
Created: 2011-12-09 15:18:57+00:00
State: open

Here are two things that are quite unpolished. Maybe there are even more.

# Wrong indention for heading

After you select a portion of HTML and hit Alt+Shift+F, there is wrong indention for H1, H2 etc. headings.

Examples with indentation set to 4 spaces.

## HTML (good):

```

I am a heading

And I am a paragraph

```

## Latte (bad):

There are actually 8 spaces.

```

I am a heading

And I am a paragraph

```

# Bad carter placement

Typing `

[enter][enter]Hello world

` produces:

## HTML (good)

```

Hello world[caret]

```

## Latte (bad)

```

Hello world[caret]

```