XWIKI-11140: Empty lines are not visually displayed

(cherry picked from commit e176b3791e849d3b181ef81a44624bb068605479)