'>>> t = Textile()
>>> t.table(\'|one|two|three|\n|a|b|c|\')
\'\t<table>\n\t\t<tr>\n\t\t\t<td>one</td>\n\t\t\t<td>two</td>\n\t\t\t<td>three</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>a</td>\n\t\t\t<td>b</td>\n\t\t\t<td>c</td>\n\t\t</tr>\n\t</table>\n\n\''

def table(self, text):

    text = (text + '\n\n')
    pattern = re.compile(('^(?:table(_?%(s)s%(a)s%(c)s)\\.    ?\\n)?^(%(a)s%(c)s\\.?    ?\\|.*\\|)\\n\\n' % {'s': self.s, 'a': self.a, 'c': self.c}), ((re.S | re.M) | re.U))
    return pattern.sub(self.fTable, text)
