From 6a06f58a5ea5047f771cbae5f7b4ffaaf63fe422 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 1 Oct 2013 09:31:40 +0900 Subject: [PATCH] Remove annoying type="text/css" from link:css and link:print snippet. Closes #152 --- autoload/emmet.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/emmet.vim b/autoload/emmet.vim index 2b4db2f..cd367e6 100644 --- a/autoload/emmet.vim +++ b/autoload/emmet.vim @@ -1,7 +1,7 @@ "============================================================================= " emmet.vim " Author: Yasuhiro Matsumoto -" Last Change: 26-Sep-2013. +" Last Change: 01-Oct-2013. let s:save_cpo = &cpo set cpo&vim @@ -1399,8 +1399,8 @@ let s:emmet_settings = { \ 'bdo:l': {'dir': 'ltr'}, \ 'del': {'datetime': '${datetime}'}, \ 'ins': {'datetime': '${datetime}'}, -\ 'link:css': [{'rel': 'stylesheet'}, {'type': 'text/css'}, {'href': '|style.css'}, {'media': 'all'}], -\ 'link:print': [{'rel': 'stylesheet'}, {'type': 'text/css'}, {'href': '|print.css'}, {'media': 'print'}], +\ 'link:css': [{'rel': 'stylesheet'}, g:emmet_html5 ? {} : {'type': 'text/css'}, {'href': '|style.css'}, {'media': 'all'}], +\ 'link:print': [{'rel': 'stylesheet'}, g:emmet_html5 ? {} : {'type': 'text/css'}, {'href': '|print.css'}, {'media': 'print'}], \ 'link:favicon': [{'rel': 'shortcut icon'}, {'type': 'image/x-icon'}, {'href': '|favicon.ico'}], \ 'link:touch': [{'rel': 'apple-touch-icon'}, {'href': '|favicon.png'}], \ 'link:rss': [{'rel': 'alternate'}, {'type': 'application/rss+xml'}, {'title': 'RSS'}, {'href': '|rss.xml'}],