FIX: check ws line problem solved
This commit is contained in:
@ -31,19 +31,20 @@ def asciidoc_json_dump(list, name, steps, Pmodules_db_path):
|
|||||||
if len(list) > 1:
|
if len(list) > 1:
|
||||||
list_range = len(list) - steps + 1
|
list_range = len(list) - steps + 1
|
||||||
for index in range(0, list_range, steps):
|
for index in range(0, list_range, steps):
|
||||||
matrix_row = [list[index].split()[0]]
|
if len(list[index]) > 1:
|
||||||
if steps == 2:
|
matrix_row = [list[index].split()[0]]
|
||||||
|
if steps == 2:
|
||||||
|
matrix_row += [
|
||||||
|
list[index + 1].split()[1] + "->" + list[index].split()[1]
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
matrix_row += [list[index].split()[1]]
|
||||||
matrix_row += [
|
matrix_row += [
|
||||||
list[index + 1].split()[1] + "->" + list[index].split()[1]
|
list[index].split()[2],
|
||||||
|
" ".join(list[index].split()[3:]),
|
||||||
|
str(date.today()),
|
||||||
]
|
]
|
||||||
else:
|
matrix.append(matrix_row)
|
||||||
matrix_row += [list[index].split()[1]]
|
|
||||||
matrix_row += [
|
|
||||||
list[index].split()[2],
|
|
||||||
" ".join(list[index].split()[3:]),
|
|
||||||
str(date.today()),
|
|
||||||
]
|
|
||||||
matrix.append(matrix_row)
|
|
||||||
|
|
||||||
# Update database file
|
# Update database file
|
||||||
matrix += matrix_db
|
matrix += matrix_db
|
||||||
|
Reference in New Issue
Block a user