\n";
rowstarted = true;
}
cout << "" << value << "<\td>";
next_column();
}
void HTMLInvoicePrinter::print_number(double value, int precision)
{
if (!tablestarted)
{
cout << "\n";
rowstarted = false;
}
if (! rowstarted)
{
cout << "\n";
rowstarted = true;
}
cout << "| " << value << "<\td>";
next_column();
}
void HTMLInvoicePrinter::print_footer(string s, double total)
{
if (!tablefinished)
{
cout << "<\table>\n";
tablefinished = true;
}
cout << "" << s << " " << total << "<\b>";
}
| |