Fix maxLine for parsing outside of tags, more tests