La Vita è Bella
Monday, May 08, 2006
vim 7 is out, and a patch for 2html
Updated Again: with this patch, if you let use_xhtml=1, then you must let html_use_css=1, or otherwise the file generated is not a valid xml file. It won't generate a invalid file now.
Finally, vim 7 is released.
I've pointed out 3 bugs in vim's 2html feature, and they were "fixed" in 7.0 -- but not so perfectly.
So I've made a patch for "2html.vim" to resolve my problem.
Please note that, this patch only solved my problem. I haven't tested it on other environments(I mean, different value of "html_use_css", etc.), so use it at your own risk.
download the patch here or see it below:
1 --- orig/2html.vim 2006-05-08 21:37:46.000000000 +0800
2 +++ 2html.vim 2006-05-08 21:45:50.000000000 +0800
3 @@ -229,9 +229,7 @@
4 let s:HtmlEndline = ''
5 if exists("html_no_pre")
6 let s:HtmlEndline = '<br' . s:tag_close
7 - if exists("use_xhtml")
8 - let s:LeadingSpace = ' '
9 - else
10 + if !exists("use_xhtml") || exists("use_xhtml") && exists("html_use_css")
11 let s:LeadingSpace = ' '
12 endif
13 let s:HtmlSpace = '\' . s:LeadingSpace
Note: It only works perfect with the following settings:
let html_use_css = 1
let html_no_pre = 1
let use_xhtml = 1
tags: vim, 2html, patch
15:50:13 by fishy - opensource - Permanent Link
Revision: 1.0/1.0, last modified on 2006-05- 9 @ 06:50.
Karma: 9 (55.84% out of 77 were positive) [+/-]
You can subscribe to RSS 2.0 feed for comments and trackbacks
Trackbacks:There are currently no trackbacks for this item.Use this TrackBack url to ping this item (right-click, copy link target). If your blog does not support Trackbacks you can manually add your trackback by using this form.
No comments yet





