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, |
|
108 | text = bdiff.fixws(text, True) | |
109 | elif opts.ignorewsamount: |
|
109 | elif opts.ignorewsamount: | |
110 |
text = bdiff.fixws(text, |
|
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