diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 380d8d8b62..847fc4b3d5 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -2928,7 +2928,7 @@ def convert_epigraph(document): begsubst = ['\\begin_inset Argument post:1', 'status collapsed', '', '\\begin_layout Plain Layout'] endsubst = ['\\end_layout', '', '\\end_inset', '', document.body[j]] - document.body[j : j] = endsubst + document.body[j : j + 1] = endsubst document.body[endInset + 1 : endInset + 1] = begsubst # Adjust range end endlay += len(begsubst) + len(endsubst)