From ab31598e04678cdedcad6bc93a1d6aeea92837f4 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Fri, 17 Jul 2020 12:16:47 -0400 Subject: [PATCH] Simplify --- lib/lyx2lyx/lyx_2_4.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 6283631d26..8bd501e237 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -3930,8 +3930,7 @@ def convert_docbook_table_output(document): def revert_docbook_table_output(document): - i = find_token(document.header, '\\docbook_table_output 0') - i = find_token(document.header, '\\docbook_table_output 1') if i == -1 else i + i = find_token(document.header, '\\docbook_table_output') if i != -1: del document.header[i]