Fixed max width not updating on encontering new line character.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>