also not sure if this will work in stripping out blank lines. Even if a field is empty, there'll be empty spans. Is there a unit test for this scenario?