Properly reset inPre state in the pre handler

Also added a parser test that currently fails in html2wt and html2html 
mode as we are collapsing two adjacent pre elements into one (bug 57276).

Change-Id: I7c63a44ce24dfcaea3f1f573eee1ce38a3410d46