Ben,
On 2012-10-13 01:56, Ben Fritz wrote:
On Friday, October 12, 2012 6:02:57 AM UTC-5, Philip Rhoades wrote:
On 2012-10-11 02:51, Ben Fritz wrote:
>
> Recent version of TOhtml will convert a side-by-side diff into
HTML
> as you would expect. You can event tell it to use javascript to
allow
> showing/hiding context. See :help :TOhtml.
>
> Probably you can then print the resulting HTML file to get your
final
> desired result.
The problem is that the files contain long lines - after the HTML
conversion, the long lines in the browser are viewable by using the
scroll bars at the bottom of each panel but when printed, the lines
are
truncated ie only the stuff on the screen with the scroll bars at
hard
left are printed.
Oh yuck. I don't know of a good way around that. Either you accept
truncated lines, or you turn on word wrapping and risk a misaligned
diff. If you're lucky the diff will still align correctly and the
word
wrapping will solve your problem.
I should have said - I did try that but the output in html is still
long lines.
Try converting again after doing a
":let g:html_pre_wrap=1". Normally it defaults to the same value as
your 'wrap' option, which is off for good reason during a diff, but
this will force it on.
I still get long lines in the output . .
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: [email protected]
--
You received this message from the "vim_use" 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