jsoverson / preprocess

Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
Other
366 stars 80 forks source link

HAML: Indentation on @extend #88

Closed patlux closed 5 years ago

patlux commented 9 years ago

My setup:

Indent: 2 Spaces Type: html

layout/content.haml:

!!! 5
%html
  %body
    %main.content
      <!-- @extendable -->

test.haml:

<!-- @extend layout/content.haml -->
.container
  Test
<!-- @endextend -->

Expectation:

    %main.content
      .container
        Test

But preprocessor create this:

    %main.content
      .container
  Test

The first line has always the right indentation., but the following lines not.

So I get from Ruby-Haml a error like this:

Illegal nesting: nesting within plain text is illegal.

How to fix this?