Skip to content
Snippets Groups Projects
Commit 2bb5c756 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Ignore previous line to table if empty line

parent a0666570
No related branches found
No related tags found
No related merge requests found
......@@ -82,8 +82,7 @@ def parse_all_examples(txt):
if is_example_table(line):
linetext = str(line.rows[0].cells[0].text)
elif isinstance(line, str):
if line != '\r\n' and line != '\n':
linetext = line
linetext = line
else:
continue
......@@ -102,7 +101,8 @@ def parse_all_examples(txt):
res.append(Example(filename, new_example))
new_example = ""
previous_line = linetext
if linetext != "":
previous_line = linetext
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment