Fix entries spanning over multiple lines and dangling '|'s at end of line.