From 4b4e68ae1d702c5c462e9d11e661cc9783d1c35d Mon Sep 17 00:00:00 2001 From: hpate-omicron <30602745+hpate-omicron@users.noreply.github.com> Date: Wed, 16 Aug 2017 09:52:32 -0400 Subject: [PATCH] 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 --- autoload/emmet/lang/elm.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/emmet/lang/elm.vim b/autoload/emmet/lang/elm.vim index 2acde53..5bb5331 100644 --- a/autoload/emmet/lang/elm.vim +++ b/autoload/emmet/lang/elm.vim @@ -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