pombreda / txt2tags

Automatically exported from code.google.com/p/txt2tags
GNU General Public License v2.0
0 stars 0 forks source link

Fails on invalid markup #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
printf "title\nauthor\ndate\n: one\n two\n - three\n- four" | ./txt2tags -t 
html -i-

Sorry! Txt2tags aborted by an unknown error.
Please send the following Error Traceback to the author (verde@aurelio.net):

Traceback (most recent call last):
  File "./txt2tags", line 9620, in <module>
    exec_command_line()
  File "./txt2tags", line 9614, in exec_command_line
    convert_this_files(infiles_config)
  File "./txt2tags", line 8185, in convert_this_files
    target_body, marked_toc = convert(source_body, myconf, firstlinenr=first_body_line)
  File "./txt2tags", line 9111, in convert
    ret.extend(BLOCK.blockout())
  File "./txt2tags", line 6386, in blockout
    result = getattr(self, blockname)()
  File "./txt2tags", line 6843, in deflist
    return self.list('deflist')
  File "./txt2tags", line 6914, in list
    z, term, rest = item[0].split(SEPARATOR, 2)
ValueError: need more than 2 values to unpack

Original issue reported on code.google.com by jendriks...@gmail.com on 28 Feb 2013 at 12:54

GoogleCodeExporter commented 9 years ago
Good catch! There's an algorithm to detect malformed lists, but it's obviously 
missing that case.

Original comment by aureliojargas@gmail.com on 22 Mar 2013 at 1:03