Fixed closing of tables if there is a table following a table with only ...

...a new line between them.

if you had 2 tables following each other with just a new line between, like:

|test1a|test1a|
|------|------|
|test1b|test1b|

|test2a|test2a|
|------|------|
|test2b|test2b|


It produced one joined up table, as opposed to two tables:

<table>
<thead>
<tr>
<th>test1a</th>
<th>test1a</th>
</tr>
</thead>
<tbody>
<tr>
<td>test1b</td>
<td>test1b</td>
</tr>
<tr>
<th>test2a</th>
<th>test2a</th>
</tr>
</thead>
<tbody>
<tr>
<td>test2b</td>
<td>test2b</td>
</tr>
</tbody>
</table>

Now it produces:

<table>
<thead>
<tr>
<th>test1a</th>
<th>test1a</th>
</tr>
</thead>
<tbody>
<tr>
<td>test1b</td>
<td>test1b</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>test2a</th>
<th>test2a</th>
</tr>
</thead>
<tbody>
<tr>
<td>test2b</td>
<td>test2b</td>
</tr>
</tbody>
</table>

--

I've not tested it for anything else, it probably breaks more than it fixes :o 

Something screwey with the indentation in my commit - apologies!
You should probably avoid adding comments referring to line numbers as they can easily change. You could refer to a piece of code using a function name or you could point to it using a GitHub url to a specific revision and a line number.