Maybe. But expecting people to remember a ; (or similar) at the end of lines is going to cause more frequent problems from a UX performance.
So you’re better off accepting the edge cases problems that white space introduces considering the benefits outweighs the pain.