Updates for :TOhtml. (Benjamin Fritz)

This commit is contained in:
Bram Moolenaar
2010-08-13 11:30:02 +02:00
parent 2f1e050414
commit 8df7f88890
3 changed files with 33 additions and 13 deletions

View File

@ -1,6 +1,6 @@
" Vim autoload file for the tohtml plugin.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
" Last Change: 2010 Aug 06
" Last Change: 2010 Aug 12
"
" Additional contributors:
"
@ -52,6 +52,11 @@ func! tohtml#Diff2HTML(win_list, buf_list)
let xml_line = ""
let tag_close = '>'
let s:old_paste = &paste
set paste
let s:old_magic = &magic
set magic
if s:settings.use_xhtml
if s:settings.encoding != ""
let xml_line = "<?xml version=\"1.0\" encoding=\"" . s:settings.encoding . "\"?>"
@ -250,6 +255,9 @@ func! tohtml#Diff2HTML(win_list, buf_list)
\ ])
endif
endif
let &paste = s:old_paste
let &magic = s:old_magic
endfunc
" Gets a single user option and sets it in the passed-in Dict, or gives it the