80
80
ctx['title'] = os.path.normpath(self.path).rsplit('/', 1)[-1]
83
84
# Create a dict with (name, HTMLdiff) pairs for each non-empty diff.
84
85
ctx['files'] = dict([(fd[0], genshi.XML(htmlfy_diff(fd[1])))
85
86
for fd in diff_matcher.findall(diff)
89
94
def htmlfy_diff(difftext):
90
95
"""Adds HTML markup to a udiff string"""