Bram Moolenaar, 17.07.2008: > > Markus Heidelberg wrote: > > > I do :TOhtml on file1 that is diffed against file2 and has a deleted line. > > If > > 'number' is set, the leading spaces in the deleted line are displayed as > > in the HTML browser (  in the editor). > > > > file1: > > text > > vim: nu > > > > file2: > > text > > > > vim: nu > > > > The following patch fixes it. > > Hmm, that works around the problem after it has happened. Would be > better to fix it where it is caused. So the should not be > escaped. Looks like s:LeadingSpace is misused around line 308, needs to > more digging to figure it out. Can you look into that?
Yes, I know. I wanted to add that this is not the best solution, but I forgot to. The problem is that in s:HtmlFormat() the & is converted to &. I tried adding s:LeadingSpace from line 308 (set to &bnsp;) after this function call on line 324 but then the is in front of the <span> instead of inside this tag of course. So how can we bypass this? Splitting s:HtmlFormat() in two functions, one for conversion of the HTML characters, the other for generation of the HTML tags? Then we could probably add s:LeadingSpace between these two function calls. Markus --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
