[html] Not set geometry in the middle of printing
[html] Not set geometry in the middle of printing

Summary: Setting geometry of format in the middle of print, it seems to lose the printed data before.  This diff makes sure that it sets the geometry before printing any string.

Reviewed By: sofiaoreis

Differential Revision: D40732684

fbshipit-source-id: 5b06bf3a627288ae22927e4b7cbdee95856d0778

facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer