Show More
@@ -46,6 +46,7 b' class OPS(object):' | |||
|
46 | 46 | MOD = 'M' |
|
47 | 47 | DEL = 'D' |
|
48 | 48 | |
|
49 | ||
|
49 | 50 | def wrap_to_table(str_): |
|
50 | 51 | return '''<table class="code-difftable"> |
|
51 | 52 | <tr class="line no-comment"> |
@@ -79,7 +80,8 b' def wrapped_diff(filenode_old, filenode_' | |||
|
79 | 80 | f_gitdiff = get_gitdiff(filenode_old, filenode_new, |
|
80 | 81 | ignore_whitespace=ignore_whitespace, |
|
81 | 82 | context=line_context) |
|
82 |
diff_processor = DiffProcessor( |
|
|
83 | diff_processor = DiffProcessor( | |
|
84 | f_gitdiff, format='gitdiff', diff_limit=diff_limit, | |
|
83 | 85 |
|
|
84 | 86 | _parsed = diff_processor.prepare() |
|
85 | 87 | |
@@ -190,7 +192,8 b' class DiffProcessor(object):' | |||
|
190 | 192 | # used for inline highlighter word split |
|
191 | 193 | _token_re = re.compile(r'()(>|<|&|\W+?)') |
|
192 | 194 | |
|
193 |
def __init__(self, diff, format='gitdiff', diff_limit=None, |
|
|
195 | def __init__(self, diff, format='gitdiff', diff_limit=None, | |
|
196 | file_limit=None, show_full_diff=True): | |
|
194 | 197 | """ |
|
195 | 198 | :param diff: A `Diff` object representing a diff from a vcs backend |
|
196 | 199 | :param format: format of diff passed, `udiff` or `gitdiff` |
General Comments 0
You need to be logged in to leave comments.
Login now