On Thu, Sep 3, 2009 at 1:53 PM, Ben Fritz<[email protected]> wrote:
>
>
>
> On Sep 2, 9:00 pm, Hari Krishna Dara <[email protected]> wrote:
>> I couldn't determine if this was discussed before by searching. I want
>> to export the current vimdiff to html, but 2html.vim only exports on
>> window at a time. Is there a plugin or a trick to come up with both
>> the windows participating in the diff?
>>
>> I was able to get a reasonable result by manually merging the body of
>> the two html files generated into an outer table, but I had an issue
>> the table wrapping some lines due to lack of width and take the files
>> out of sync. To workaround, I had to fix the table width's to be large
>> enough and avoid the wrap.
>
> First, you look like you might also be interested in the patch I
> submitted a while back to enable dynamic folding in the 2html output:
>
> http://groups.google.com/group/vim_dev/browse_thread/thread/84bcdc1a7e56e14d

Dynamic folding is very nice, I will consider using it in the future.
Why not upload it as a plugin on to vim.org?

>
> Secondly, I was under the impression that wrapping didn't happen
> inside <pre> sections, which 2html uses by default. If this is not the
> case, try using the 'overflow' CSS property: 
> http://www.w3.org/TR/CSS2/visufx.html#overflow

I didn't notice any <pre> tags in the generated html, but adding them
makes the rendering odd with too much spacing everywhere. I tried the
<div style="overflow: <value>"> inside <td> with all possible options
and none of them prevented the wrapping. In fact, with "scroll", I got
scrollbars added inside the columns, but the lines were wrapped
anyway.

-- 
Hari
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to