From: José Matox Date: Wed, 2 Aug 2006 16:13:01 +0000 (+0000) Subject: string.join(lst) -> " ".join(lst) and not "".join(lst) X-Git-Tag: 1.6.10~12888 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7f552526fc303a47ba28427eff7d2fef46096937;p=features.git string.join(lst) -> " ".join(lst) and not "".join(lst) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14538 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_1_5.py b/lib/lyx2lyx/lyx_1_1_5.py index 001e959c12..8720cfcefb 100644 --- a/lib/lyx2lyx/lyx_1_1_5.py +++ b/lib/lyx2lyx/lyx_1_1_5.py @@ -99,7 +99,7 @@ def update_tabular(document): if len(col_info) == 3: lines[i] = lines[i] + '"" ""' else: - lines[i] = "".join(col_info[:3]) + ' "%s" ""' % col_info[3] + lines[i] = " ".join(col_info[:3]) + ' "%s" ""' % col_info[3] i = i + 1 while lines[i]: @@ -187,7 +187,7 @@ def latexdel_getargs(document, i): document.warning("Unexpected end of inset.") j = find_token(lines, '\\begin_inset LatexDel }{', i) - ref = "".join(lines[i:j]) + ref = " ".join(lines[i:j]) del lines[i:j + 1] # play safe, clean empty lines @@ -202,7 +202,7 @@ def latexdel_getargs(document, i): else: document.warning("Unexpected end of inset.") j = find_token(lines, '\\begin_inset LatexDel }', i) - label = "".join(lines[i:j]) + label = " ".join(lines[i:j]) del lines[i:j + 1] return ref, label diff --git a/lib/lyx2lyx/lyx_1_4.py b/lib/lyx2lyx/lyx_1_4.py index 198f401cfe..039851b84f 100644 --- a/lib/lyx2lyx/lyx_1_4.py +++ b/lib/lyx2lyx/lyx_1_4.py @@ -313,7 +313,7 @@ def revert_external_1(document): params.reverse() if document.body[i+1]: del document.body[i+1] - document.body[i] = document.body[i] + " " + template[0]+ ', "' + filename[0] + '", " '+ "".join(params[1:]) + '"' + document.body[i] = document.body[i] + " " + template[0]+ ', "' + filename[0] + '", " '+ " ".join(params[1:]) + '"' i = i + 1 @@ -714,7 +714,7 @@ parskip} vspace_top = document.body[i].find("\\added_space_top") tmp_list = document.body[i][vspace_top:].split() vspace_top_value = tmp_list[1] - document.body[i] = document.body[i][:vspace_top] + "".join(tmp_list[2:]) + document.body[i] = document.body[i][:vspace_top] + " ".join(tmp_list[2:]) if vspace_bot != -1: # the position could be change because of the removal of other @@ -722,7 +722,7 @@ parskip} vspace_bot = document.body[i].find("\\added_space_bottom") tmp_list = document.body[i][vspace_bot:].split() vspace_bot_value = tmp_list[1] - document.body[i] = document.body[i][:vspace_bot] + "".join(tmp_list[2:]) + document.body[i] = document.body[i][:vspace_bot] + " ".join(tmp_list[2:]) document.body[i] = document.body[i].strip() i = i + 1