Fix serializing html-pres with large spacing

 * The selser failure should be fixed with the next patch.

Change-Id: Ice1bb4480e2a1a2cfc8ec82aa0c3e8194ed2516e