From eed31f9ef13e10960d07b8a50a15c7b69d4a94e4 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 25 Jan 2012 17:33:41 +0100 Subject: [PATCH] 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 --- src/internfile/mh_html.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/internfile/mh_html.cpp b/src/internfile/mh_html.cpp index b8d7bb45..e4d8452f 100644 --- a/src/internfile/mh_html.cpp +++ b/src/internfile/mh_html.cpp @@ -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;