Fix #382 - Multiple class name expansion with Elm

This change makes the multiple class name expansion work correctly in Elm.

```
div.one.two.three
```

Becomes
```
    div [ class "one two three" ] []
```

Previously you would get
```
    div [ class "one.two.three" ] []
```
https://github.com/mattn/emmet-vim/issues/382
This commit is contained in:
hpate-omicron
2017-08-16 09:52:32 -04:00
committed by GitHub
parent 9c6d783636
commit 4b4e68ae1d

View File

@@ -133,7 +133,7 @@ function! emmet#lang#elm#toString(settings, current, type, inline, filters, item
if attr ==# 'id' && len(valtmp) > 0
let tmp .=', id "' . Val . '"'
elseif attr ==# 'class' && len(valtmp) > 0
let tmp .= ', class "' . substitute(Val, ' ', '.', 'g') . '"'
let tmp .= ', class "' . substitute(Val, '\.', ' ', 'g') . '"'
else
let tmp .= ', ' . attr . ' "' . Val . '"'
endif