On Jul 17, 12:48 am, Dominique Pellé <[email protected]>
wrote:
>
> I see a bug: part of CSS style shows up in the rendered HTML
> at the bottom of the page.
>
Thanks, I'll look into it. But I cannot reproduce it.
> Steps to reproduce:
>
> 1) use the following ~/.vimrc
>
> set nocompatible
> syntax on
> filetype on
> filetype plugin on
> let html_use_css=1
>
I used file, "test_vimrc.vim" with contents:
set nocompatible
syntax on
filetype on
filetype plugin on
let html_use_css=1
runtime plugin/tohtml.vim
> 2) generate a HTML file:
>
> $ vim vim/src/popupmnu.c -c 'TOhtml' -c xa
>
I used:
$ gvim -u test_vimrc.vim --noplugin -i NONE vim/src/popupmnu.c -c
"TOhtml" -c xa
> 3) Open generated vim/src/popupmnu.c.html in Firefox
> and observe at the bottom of the page that the following
> line is rendered (it should not be rendered):
>
> .Statement { color: #ffff00; }
>
> The bottom of the generated HTML source looks like this:
>
> $ tail vim/src/popupmnu.c.html
> <span class="Type">int</span>
> pum_get_height()
> {
> <span class="Statement">return</span> pum_height;}
>
> .Statement { color: #ffff00; }
> <span class="PreProc">#endif</span>
> </pre>
> </body>
> </html>
>
> The line ".Statement CSS {...}" should be in the HTML header,
> not in the body.
>
I get:
<span class="Type">int</span>
pum_get_height()
{
<span class="Statement">return</span> pum_height;
}
<span class="PreProc">#endif</span>
</pre>
</body>
</html>
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php