From: Juergen Spitzmueller Date: Fri, 28 Dec 2012 13:04:24 +0000 (+0100) Subject: tex2lyx glitch X-Git-Tag: 2.1.0beta1~1034 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d4a00c1a8a514cbec8a50b30ecb35659021d80da;p=lyx.git tex2lyx glitch --- 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)