title: Python - PrettyTable, if text in one column is long is it possible to set it in new row?
body: <p>my trouble is this: I would like to set text I have in tab separated format to a nice ASCII table. I can do that using prettytable and this is not my problem currently. The problem is that I have one column that have long text, and I would like for prettytable to cut that text in smaller parts.</p>
  <p>What I have now:</p>
  <pre><code>+------+------+--------------------------------------------------+
  | Col1 | Col2 |                         Col3                     |
  +----------------------------------------------------------------+
  |     a|     b| 123456789123456789123456789123456789123456789123 |
  |     d|     e| 123456789123456789123456789123456789123456789123 |
  +------+------+--------------------------------------------------+
  </code></pre>
  <p>What I would like to have:</p>
  <pre><code>+------+------+---------------------+
  | Col1 | Col2 |        Col3         |
  +---------------------------- ------+
  |     a|     b| 1234567891234567891 |
  |      |      | 2345678912345678912 |
  |      |      |      3456789123     |
  |     d|     e| 1234567891234567891 |
  |      |      | 2345678912345678912 |
  |      |      |      3456789123     |
  +------+------+---------------------+
  </code></pre>
  <p>My code is as follows:</p>
  <pre><code>import re
  from prettytable import PrettyTable
  
  imported = open(&quot;import_file.txt&quot;, &quot;r&quot;)
  x = PrettyTable()
  x.field_names = [&quot;Col1&quot;, &quot;Col2&quot;, &quot;Col3&quot;]
  for i in imported:
      red = re.split(r'\t', i)
      x.add_row(red)
  with open('exit_file.txt', 'w') as exitfile:
      exitfile.write(str(x))
  </code></pre>
  <p>Is it possible to do something like that easy in python3 using prettytable or should I use some other module?</p>