Switch to unified view

a/src/internfile/myhtmlparse.cpp b/src/internfile/myhtmlparse.cpp
...
...
75
        if (tag == "address") pending_space = true;
75
        if (tag == "address") pending_space = true;
76
        break;
76
        break;
77
    case 'b':
77
    case 'b':
78
        if (tag == "body") {
78
        if (tag == "body") {
79
        dump = "";
79
        dump = "";
80
      in_body_tag = true;
80
        break;
81
        break;
81
        }
82
        }
82
        if (tag == "blockquote" || tag == "br") {
83
        if (tag == "blockquote" || tag == "br") {
83
        dump += '\n';
84
        dump += '\n';
84
        pending_space = true;
85
        pending_space = true;
...
...
232
        if (tag == "address") pending_space = true;
233
        if (tag == "address") pending_space = true;
233
        break;
234
        break;
234
    case 'b':
235
    case 'b':
235
        if (tag == "body") {
236
        if (tag == "body") {
236
        LOGDEB1(("Myhtmlparse: body close tag found\n"));
237
        LOGDEB1(("Myhtmlparse: body close tag found\n"));
238
      in_body_tag = false;
237
        throw true;
239
        throw true;
238
        }
240
        }
239
        if (tag == "blockquote" || tag == "br") pending_space = true;
241
        if (tag == "blockquote" || tag == "br") pending_space = true;
240
        break;
242
        break;
241
    case 'c':
243
    case 'c':
...
...
300
    case 'x':
302
    case 'x':
301
        if (tag == "xmp") pending_space = true;
303
        if (tag == "xmp") pending_space = true;
302
        break;
304
        break;
303
    }
305
    }
304
}
306
}
307
308
// This gets called when hitting eof. If the <body> is open, do
309
// something with the text (that is, don't throw up). Else, things are
310
// too weird, throw an error. We don't get called if the parser finds
311
// a closing body tag (exception gets thrown by closing_tag())
312
void
313
MyHtmlParser::do_eof()
314
{
315
    if (!in_body_tag)
316
  throw(false);
317
}