From c1e37901fc8486c9960d7290e521ba51e292e94b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 18 Apr 2006 21:55:01 +0000 Subject: updated for version 7.0e02 --- runtime/syntax/2html.vim | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'runtime/syntax/2html.vim') diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim index 49feceea98..b852f48a9a 100644 --- a/runtime/syntax/2html.vim +++ b/runtime/syntax/2html.vim @@ -1,6 +1,6 @@ " Vim syntax support file " Maintainer: Bram Moolenaar -" Last Change: 2005 Dec 04 +" Last Change: 2006 Apr 18 " (modified by David Ne\v{c}as (Yeti) ) " (XHTML support by Panagiotis Issaris ) @@ -224,14 +224,16 @@ else endif let s:HtmlSpace = ' ' +let s:LeadingSpace = ' ' let s:HtmlEndline = '' if exists("html_no_pre") let s:HtmlEndline = '\n\n\n\e" endif if exists("html_no_pre") - exe "normal! a\n\n\e" + if exists("use_xhtml") + exe "normal! a\n\n

\n\e" + else + exe "normal! a\n\n\e" + endif else - exe "normal! a\n\n

\n\e"
+  if exists("use_xhtml")
+    exe "normal! a\n\n

\n

\n\e"
+  else
+    exe "normal! a\n\n
\n\e"
+  endif
 endif
 
 exe s:orgwin . "wincmd w"
@@ -296,7 +306,7 @@ while s:lnum <= s:end
     while s:n > 0
       if s:numblines
         " Indent if line numbering is on
-        let s:new = repeat(' ', strlen(s:end) + 1) . repeat(s:difffillchar, 3)
+        let s:new = repeat(s:LeadingSpace, strlen(s:end) + 1) . repeat(s:difffillchar, 3)
       else
         let s:new = repeat(s:difffillchar, 3)
       endif
@@ -406,9 +416,17 @@ endwhile
 " Finish with the last line
 exe s:newwin . "wincmd w"
 if exists("html_no_pre")
-  exe "normal! a\n\n\e"
+  if exists("use_xhtml")
+    exe "normal! a

\n\n\e" + else + exe "normal! a\n\n\e" + endif else - exe "normal! a
\n\n\e" + if exists("use_xhtml") + exe "normal! a
\n

\n\n\e" + else + exe "normal! a
\n\n\e" + endif endif @@ -525,4 +543,4 @@ if !v:profiling delfunc s:HtmlClosing endif endif -silent! unlet s:diffattr s:difffillchar s:foldfillchar s:HtmlSpace s:HtmlEndline +silent! unlet s:diffattr s:difffillchar s:foldfillchar s:HtmlSpace s:LeadingSpace s:HtmlEndline -- cgit v1.2.3