fixed contents parser.

This commit is contained in:
mattn
2011-11-08 11:09:54 +09:00
parent 7bed58f537
commit accc9934d2

View File

@@ -1,7 +1,7 @@
"=============================================================================
" zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 25-Oct-2011.
" Last Change: 08-Nov-2011.
let s:save_cpo = &cpo
set cpo&vim
@@ -1071,7 +1071,7 @@ function! zencoding#anchorizeURL(flag)
let content = s:get_content_from_url(url, 1)
endif
let content = substitute(content, '\r', '', 'g')
let content = substitute(content, '[\s\n]\+', ' ', 'g')
let content = substitute(content, '[ \n]\+', ' ', 'g')
let content = substitute(content, '<!--.\{-}-->', '', 'g')
let title = matchstr(content, mx)