Bugfix: Clear table output buffer between tables

*Details*
Previously if you had 3 tables it would output like

Table 1
Table 1
Table 2
Table 1
Table 2
Table 3

When we really want

Table 1
Table 2
Table 3