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 @@
-
\ No newline at end of file
+
\ 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