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:
parent
ff3da0ceda
commit
eed31f9ef1
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user