##// END OF EJS Templates
mdiff: tweak calls into `bdiff.fixws` to match its type hints...
Matt Harbison -
r52825:d94e21b5 default
parent child Browse files
Show More
@@ -105,9 +105,9 defaultopts = diffopts()
105
105
106 def wsclean(opts, text, blank=True):
106 def wsclean(opts, text, blank=True):
107 if opts.ignorews:
107 if opts.ignorews:
108 text = bdiff.fixws(text, 1)
108 text = bdiff.fixws(text, True)
109 elif opts.ignorewsamount:
109 elif opts.ignorewsamount:
110 text = bdiff.fixws(text, 0)
110 text = bdiff.fixws(text, False)
111 if blank and opts.ignoreblanklines:
111 if blank and opts.ignoreblanklines:
112 text = re.sub(b'\n+', b'\n', text).strip(b'\n')
112 text = re.sub(b'\n+', b'\n', text).strip(b'\n')
113 if opts.ignorewseol:
113 if opts.ignorewseol:
General Comments 0
You need to be logged in to leave comments. Login now