")
{
- temp += dateHeader;
+ if (!dateHeader.isEmpty())
+ temp += dateHeader;
i = stitchText(html, temp, i+4);
if (i == -1) //EOF
break;
@@ -49,7 +50,8 @@ void Page::manageTableContent(QString &html, int index)
}
else if (tableTag == "" || tableTag == " | ")
{
- temp += "\t"; // new cell -> tab between data
+ if (!dateHeader.isEmpty())
+ temp += "\t"; // new cell -> tab between data
if (html.mid(i, 6) == " | ")
+ while ((html.mid(i,3) != "") && (i < (int)html.length()))
+ {
+ if (html.mid(i,5) == " | ")
+ break;
i++;
+ }
i = stitchText(html, temp, i);
}