From 5395ebd5b228acb880276e0b96ae2415c4cdc058 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 16 Jan 2019 18:30:25 -0500 Subject: [PATCH] Fix lyx2lyx export of long tables For some .lyx files with long tables, this fix reduces the differences in LaTeX export of master, compared to LaTeX export of the lyx2lyx exported file. Further, this export fixes the lyx2lyx roundtrip convergence for these cases. For discussion, see: https://www.mail-archive.com/search?l=mid&q=20190102230924.7zgla5lhkwxpx5fi%40barna --- lib/lyx2lyx/lyx_2_1.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 1dfe163b32..63d7621ab1 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -556,8 +556,6 @@ def handle_longtable_captions(document, forward): get_option_value(document.body[begin_row], 'endlastfoot') != 'true'): document.body[begin_row] = set_option_value(document.body[begin_row], 'caption', 'true", endfirsthead="true') elif get_option_value(document.body[begin_row], 'caption') == 'true': - if get_option_value(document.body[begin_row], 'endfirsthead') == 'true': - document.body[begin_row] = set_option_value(document.body[begin_row], 'endfirsthead', 'false') if get_option_value(document.body[begin_row], 'endhead') == 'true': document.body[begin_row] = set_option_value(document.body[begin_row], 'endhead', 'false') if get_option_value(document.body[begin_row], 'endfoot') == 'true': -- 2.39.5