ANSI: Test line-overlapping formats.

Until endFormatScope() is called, continuation lines keep the last
format.

Change-Id: Ic68ae6d716519f537189ebae763da4dc2c30978d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>