fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

Incorrect indentation in blade templates #1292

Closed danipardo closed 9 months ago

danipardo commented 9 months ago

When I indent a blade.php file, the indentation is broken:

image

If I switch to html-mode though, it gets better:

image

cweiske commented 6 months ago

How was this fixed? I don't see any explanation or referenced commit.

I also experienced this with 20231225.1458, while the update to 20240315.1838 fixed it.

danipardo commented 6 months ago

This ticket got closed without any comment or explanation, so I was left without a clue. But last week, I tried with a blank .emacs.d configuration, installed web-mode, and the indentation worked correctly and much faster than before. So the only thing I can suggest is to check your config, maybe there are other modules that are interfering?

fxbois commented 6 months ago

The commit is this one https://github.com/fxbois/web-mode/commit/10f1269ab1007ab3d5fe018c83bb82c979617bfd

cweiske commented 6 months ago

Thanks - this was apparently the same problem as #1300.