Show More
@@ -2310,7 +2310,7 b' def MBTextWrapper(**kwargs):' | |||||
2310 |
|
2310 | |||
2311 | # First chunk on line is whitespace -- drop it, unless this |
|
2311 | # First chunk on line is whitespace -- drop it, unless this | |
2312 | # is the very beginning of the text (i.e. no lines started yet). |
|
2312 | # is the very beginning of the text (i.e. no lines started yet). | |
2313 | if self.drop_whitespace and chunks[-1].strip() == '' and lines: |
|
2313 | if self.drop_whitespace and chunks[-1].strip() == r'' and lines: | |
2314 | del chunks[-1] |
|
2314 | del chunks[-1] | |
2315 |
|
2315 | |||
2316 | while chunks: |
|
2316 | while chunks: | |
@@ -2332,7 +2332,7 b' def MBTextWrapper(**kwargs):' | |||||
2332 |
|
2332 | |||
2333 | # If the last chunk on this line is all whitespace, drop it. |
|
2333 | # If the last chunk on this line is all whitespace, drop it. | |
2334 | if (self.drop_whitespace and |
|
2334 | if (self.drop_whitespace and | |
2335 | cur_line and cur_line[-1].strip() == ''): |
|
2335 | cur_line and cur_line[-1].strip() == r''): | |
2336 | del cur_line[-1] |
|
2336 | del cur_line[-1] | |
2337 |
|
2337 | |||
2338 | # Convert current line back to a string and store it in list |
|
2338 | # Convert current line back to a string and store it in list |
General Comments 0
You need to be logged in to leave comments.
Login now