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 {
|
||||
p.parse_html(transcoded);
|
||||
// No exception: ok?
|
||||
result = p;
|
||||
// No exception: ok? But throw true to use the same
|
||||
// code path as if an exception had been thrown by parse_html
|
||||
throw true;
|
||||
break;
|
||||
} catch (bool diag) {
|
||||
result = p;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user