From: Bram Moolenaar Date: Sun, 18 Jul 2010 12:07:22 +0000 (+0200) Subject: Improved :TOhtml. (Benjamin Fritz) X-Git-Tag: v7.3~238 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c86f4cca33e9b60cdb5dbd25d5137e0a04795ff;p=vim Improved :TOhtml. (Benjamin Fritz) --- diff --git a/runtime/autoload/tohtml.vim b/runtime/autoload/tohtml.vim index e929db325..6c03ecb34 100644 --- a/runtime/autoload/tohtml.vim +++ b/runtime/autoload/tohtml.vim @@ -1,14 +1,14 @@ " Vim autoload file for the tohtml plugin. " Maintainer: Ben Fritz -" Last Change: 2010 Jul 15 +" Last Change: 2010 July 16 " " Additional contributors: " -" Original by Bram Moolenaar -" Diff2HTML() added by Christian Brabandt +" Original by Bram Moolenaar +" Diff2HTML() added by Christian Brabandt " -" See Mercurial change logs for more! - +" See Mercurial change logs for more! + " this file uses line continuations let s:cpo_sav = &cpo set cpo-=C @@ -142,27 +142,27 @@ func! tohtml#Diff2HTML(win_list, buf_list) " if dynamic folding is active. if exists("g:html_dynamic_folds") call append(style_start, [ - \ "" - \ ]) + \ "" + \ ]) endif " Insert styles from all the generated html documents and additional styles @@ -172,16 +172,16 @@ func! tohtml#Diff2HTML(win_list, buf_list) " is pretty useless for really long lines. if exists("g:html_use_css") call append(style_start, [ - \ '' - \ ]) + \ '' + \ ]) endif endif endfunc @@ -239,4 +239,4 @@ let &cpo = s:cpo_sav unlet s:cpo_sav " Make sure any patches will probably use consistent indent -" vim: sw=2 sts=2 et +" vim: ts=8 sw=2 sts=2 noet diff --git a/runtime/plugin/tohtml.vim b/runtime/plugin/tohtml.vim index 3a6ae457b..23cfd58d8 100644 --- a/runtime/plugin/tohtml.vim +++ b/runtime/plugin/tohtml.vim @@ -1,6 +1,6 @@ " Vim plugin for converting a syntax highlighted file to HTML. " Maintainer: Ben Fritz -" Last Change: 2010 Jul 15 +" Last Change: 2010 Jul 16 " " The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and " $VIMRUNTIME/syntax/2html.vim @@ -14,4 +14,4 @@ if !&cp && !exists(":TOhtml") && has("user_commands") endif " Make sure any patches will probably use consistent indent -" vim: ts=2 sw=2 sts=2 et +" vim: ts=8 sw=2 sts=2 noet diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim index ab1c807f5..d57324f13 100644 --- a/runtime/syntax/2html.vim +++ b/runtime/syntax/2html.vim @@ -1,6 +1,6 @@ " Vim syntax support file " Maintainer: Ben Fritz -" Last Change: 2010 July 15 +" Last Change: 2010 July 16 " " Additional contributors: " @@ -990,7 +990,7 @@ while !empty(s:idlist) endif else execute '%s+\([^<]*\)+\1+ge' - if exists("s:html_use_css") + if exists("g:html_use_css") 1;/