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

Fix for last line of clause

parent 354471be
Branches
No related tags found
No related merge requests found
Pipeline #675 passed
......@@ -323,7 +323,7 @@ https://forge.etsi.org/rep/cdm/pipeline-scripts/-/blob/main/common/Dockerfile.st
modifiedElements.append(" ")
modifiedRow = "|".join(modifiedElements)
clauseMDlines.insert(j, modifiedRow + "\n")
if (j + 1) <= len(clauseMDlines):
if (j + 1) < len(clauseMDlines):
clauseMDlines.pop(j+1)
else:
logging.debug(f"Index to delete is {j}")
......@@ -332,7 +332,7 @@ https://forge.etsi.org/rep/cdm/pipeline-scripts/-/blob/main/common/Dockerfile.st
#else:
# clauseMDlines.insert(j, "~~\t~~\n")
#clauseMDlines.insert(j, "\n")
if (j + 1) <= len(clauseMDlines):
if (j + 1) < len(clauseMDlines):
logging.debug(f'Line marked as removed: {clauseMDlines[j]}')
logging.debug(f'Line being removed: {clauseMDlines[j+1]}')
clauseMDlines.pop(j+1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment