Message45539
Logged In: YES
user_id=995755
For the case where you instantiate HtmlDiff saying you want
tabs expanded it will insert non-breaking space(s) up to the
next tab stop.
For the case where you do NOT specify tab expansion it will
substitute one non-breakable space unless you override it
with a different string (where you could choose 3,4, or 8
spaces). We could make 3,4, or 8 spaces the default but it
makes it more complex because it would require two
overridable class-level members ...
spaces_per_tab = 8
tab_space = ' '
... and the post processing would look like ...
return s.replace('\t',self.tab_space*self.spaces_per_tab)
... and the pre-processing setup in the constructor would
need to override the class-level member used for the post
processing:
self.spaces_per_tab=1
We could also use a special character for tabs. We could
even attempt to use a combination of nbsp and a special
character to show the tab stops. I'd need to play with re's
to do that. |
|
Date |
User |
Action |
Args |
2007-08-23 15:36:20 | admin | link | issue914575 messages |
2007-08-23 15:36:20 | admin | create | |
|