From: Scott Kostyshak Date: Wed, 16 Jan 2019 23:30:25 +0000 (-0500) Subject: Fix lyx2lyx export of long tables X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5395ebd5b228acb880276e0b96ae2415c4cdc058;p=features.git 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 --- 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':