Fix issue with unclosed entity in multiline