home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.164 < prev    next >
Encoding:
Internet Message Format  |  2003-12-28  |  2.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.164
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  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.
  15.         (Jess Thrysoee)
  16. Files:        runtime/syntax/2html.vim
  17.  
  18.  
  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
  21. ***************
  22. *** 1,6 ****
  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>)
  27.   
  28.   " Transform a file into HTML, using the current syntax highlighting.
  29. --- 1,6 ----
  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>)
  34.   
  35.   " Transform a file into HTML, using the current syntax highlighting.
  36. ***************
  37. *** 290,296 ****
  38.   
  39.   " Now, when we finally know which, we define the colors and styles
  40.   if exists("html_use_css")
  41. !   8
  42.   endif
  43.   
  44.   " Find out the background and foreground color.
  45. --- 290,296 ----
  46.   
  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
  50.   endif
  51.   
  52.   " Find out the background and foreground color.
  53. ***************
  54. *** 351,357 ****
  55.       endif
  56.     else
  57.       execute '%s+<span class="' . s:id_name . '">\([^<]*\)</span>+\1+g'
  58. !     8
  59.     endif
  60.   endwhile
  61.   
  62. --- 351,359 ----
  63.       endif
  64.     else
  65.       execute '%s+<span class="' . s:id_name . '">\([^<]*\)</span>+\1+g'
  66. !     if exists("html_use_css")
  67. !       1;/<style type="text/+1
  68. !     endif
  69.     endif
  70.   endwhile
  71.   
  72. ***************
  73. *** 360,366 ****
  74.   
  75.   " The DTD
  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"
  78.   endif
  79.   
  80.   " Cleanup
  81. --- 362,368 ----
  82.   
  83.   " The DTD
  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"
  86.   endif
  87.   
  88.   " Cleanup
  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
  91. ***************
  92. *** 639,640 ****
  93. --- 639,642 ----
  94.   {   /* Add new patch number below this line */
  95. + /**/
  96. +     164,
  97.   /**/
  98.  
  99. -- 
  100. From "know your smileys":
  101.  :-| :-|   Deja' vu!
  102.  
  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  ///
  107.