[PATCH 2/2] Fix the line counting when printing long widgets