772: Lines of all whitespace shouldn't be highlighted in the diff
- Fixed
- Review Board
kyle*****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
July 27, 2009 |
Describe the enhancement and the motivation for it. Currently, Review Board does not like lines containing all whitespace - those lines get marked with scary red blocks. If you use an editor that does auto-indenting (which I'm sure many people do), then inserting a blank line (by hitting Enter twice) is going to leave a line with all whitespace. I know Review Board marks trailing whitespace in red, but maybe that should be ignored when the entire line is whitespace? What operating system are you using? What browser? Windows XP Professional, Firefox 3
While we may be able to make this an optional thing down the road, right now the current behavior is by design.
Sure, that's fine. If you wanted to add a bit more concreteness to the rule, it could go something like: Lines containing all whitespace are OK, as long as the line is not indented further than the line above. If the line is indented further than the line above, then those extra spaces are marked in red.