git.droids-corp.org
/
diff2html.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetic: replace "type" by "type_name"
[diff2html.git]
/
diff2html.py
diff --git
a/diff2html.py
b/diff2html.py
index
36d191b
..
ad6eaee
100644
(file)
--- a/
diff2html.py
+++ b/
diff2html.py
@@
-229,18
+229,18
@@
def add_line(s1, s2):
global line2
if s1==None and s2==None:
global line2
if s1==None and s2==None:
- type="unmodified"
+ type
_name
="unmodified"
elif s1==None or s1=="":
elif s1==None or s1=="":
- type="added"
+ type
_name
="added"
elif s2==None or s1=="":
elif s2==None or s1=="":
- type="deleted"
+ type
_name
="deleted"
elif s1==s2:
elif s1==s2:
- type="unmodified"
+ type
_name
="unmodified"
else:
else:
- type="changed"
+ type
_name
="changed"
s1,s2 = linediff(s1, s2)
s1,s2 = linediff(s1, s2)
- outputfile.write('<tr class="diff%s">'%type)
+ outputfile.write('<tr class="diff%s">'%type
_name
)
if s1!=None and s1!="":
outputfile.write('<td class="diffline">%d </td>'%line1)
outputfile.write('<td class="diffpresent">')
if s1!=None and s1!="":
outputfile.write('<td class="diffline">%d </td>'%line1)
outputfile.write('<td class="diffpresent">')