replace isolated template repeat tags with extended <tr> and <td> tags