From f3e5d300079d46a93414011deacb4ee4caa49829 Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Wed, 7 Jun 2023 16:26:37 +0200 Subject: [PATCH] fix: handle_line_strings access correct column number --- .../PASScomplicatedTable/texfilelonger.tex.html | 2 +- program/code/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/program/code/functional_tests/PASScomplicatedTable/texfilelonger.tex.html b/program/code/functional_tests/PASScomplicatedTable/texfilelonger.tex.html index 91adcdef..b7090eed 100644 --- a/program/code/functional_tests/PASScomplicatedTable/texfilelonger.tex.html +++ b/program/code/functional_tests/PASScomplicatedTable/texfilelonger.tex.html @@ -1 +1 @@ -
test 2 test
4 5 6
\ No newline at end of file +
test 2 test
4 5 6
\ No newline at end of file diff --git a/program/code/main.py b/program/code/main.py index df52084e..9b7c045c 100644 --- a/program/code/main.py +++ b/program/code/main.py @@ -340,12 +340,12 @@ def handle_line_strings(line_string, """ Converts lines untill there are no more lines """ - current_style = column_style[column_number - 1] + current_style = column_style[column_number] if current_style == line_string: while current_style == line_string: return_string += line_string column_number += 1 - current_style = column_style[column_number - 1] + current_style = column_style[column_number] return return_string, column_number