4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 6.2.164 (after 6.2.144)
11 Problem: When "g:html_use_css" is set the HTML header generated by the
12 2html script is still wrong.
13 Solution: Search for a string instead of jumping to a fixed line number.
14 Go to the start of the line before inserting the header.
16 Files: runtime/syntax/2html.vim
19 *** ../vim-6.2.163/runtime/syntax/2html.vim Sun Nov 2 17:50:31 2003
20 --- runtime/syntax/2html.vim Thu Nov 13 17:01:05 2003
23 " Vim syntax support file
24 " Maintainer: Bram Moolenaar <Bram@vim.org>
25 ! " Last Change: 2003 Nov 02
26 " (modified by David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>)
28 " Transform a file into HTML, using the current syntax highlighting.
30 " Vim syntax support file
31 " Maintainer: Bram Moolenaar <Bram@vim.org>
32 ! " Last Change: 2003 Nov 13
33 " (modified by David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>)
35 " Transform a file into HTML, using the current syntax highlighting.
39 " Now, when we finally know which, we define the colors and styles
40 if exists("html_use_css")
44 " Find out the background and foreground color.
47 " Now, when we finally know which, we define the colors and styles
48 if exists("html_use_css")
49 ! 1;/<style type="text/+1
52 " Find out the background and foreground color.
57 execute '%s+<span class="' . s:id_name . '">\([^<]*\)</span>+\1+g'
65 execute '%s+<span class="' . s:id_name . '">\([^<]*\)</span>+\1+g'
66 ! if exists("html_use_css")
67 ! 1;/<style type="text/+1
76 if exists("html_use_css")
77 ! exe "normal! ggi<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n\e"
84 if exists("html_use_css")
85 ! exe "normal! gg0i<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n\e"
89 *** ../vim-6.2.163/src/version.c Mon Dec 29 20:42:51 2003
90 --- src/version.c Mon Dec 29 20:46:55 2003
94 { /* Add new patch number below this line */
100 From "know your smileys":
103 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
104 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
105 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
106 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///