skord / atom-ruby-slim

Slim support for Atom
1 stars 5 forks source link

New lines are created at very beginning of line rather than following indentation #1

Open rudf0rd opened 10 years ago

rudf0rd commented 10 years ago

For example (cursor is at carat):

.title.col-md-6
    h2
        |{{product.title}}
    .controls
^

For ease of workflow, it should be:

.title.col-md-6
    h2
        |{{product.title}}
    .controls
        ^

I don't know if this is the right place to report this, but found that this indentation problem only occurs for me when in slim templates. Tested normal behavior in javascript and ruby files.

Thanks for the slim support!

grk commented 10 years ago

I'm getting the same issue, both with this package and https://github.com/slim-template/language-slim.

skord commented 10 years ago

Merged, is it working for you now?

ryanjafari commented 10 years ago

I've not been able to resolve this issue with the latest of this package, but I've used the hack mentioned here: https://github.com/slim-template/language-slim/issues/1 for the "language-slim" package and it seems to do for now (for anyone still having trouble).

skord commented 10 years ago

PR... PR... PR?

chibicode commented 9 years ago

@skord PR created for this: https://github.com/skord/atom-ruby-slim/pull/9