html index: throw an exception after parsing in all cases so that the same code path is always used. The previous approach sometimes resulted in a bad charset used for preview

This commit is contained in:
Jean-Francois Dockes 2012-01-25 17:33:41 +01:00
parent ff3da0ceda
commit eed31f9ef1

View File

@ -120,8 +120,9 @@ bool MimeHandlerHtml::next_document()
try { try {
p.parse_html(transcoded); p.parse_html(transcoded);
// No exception: ok? // No exception: ok? But throw true to use the same
result = p; // code path as if an exception had been thrown by parse_html
throw true;
break; break;
} catch (bool diag) { } catch (bool diag) {
result = p; result = p;