Fixed a bug in matching line-breaks