mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
- No placement in floats
- Don't use .extend() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5138 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9467fcfe57
commit
88836a4a74
@ -150,14 +150,14 @@ def update_tabular(lines):
|
||||
paragraph = []
|
||||
if cell_info[m][4] == '1':
|
||||
l = j
|
||||
paragraph.extend(cell_content[j][k])
|
||||
paragraph = paragraph + cell_content[j][k]
|
||||
while cell_info[m][4] == '1':
|
||||
m = m + columns
|
||||
l = l + 1
|
||||
paragraph.extend(cell_content[l][k])
|
||||
paragraph = paragraph + cell_content[l][k]
|
||||
else:
|
||||
paragraph = cell_content[j][k]
|
||||
tmp.extend(set_paragraph_properties(paragraph, prop_dict))
|
||||
tmp = tmp + set_paragraph_properties(paragraph, prop_dict)
|
||||
|
||||
tmp.append('\\end_inset ')
|
||||
tmp.append('</Cell>')
|
||||
@ -169,10 +169,7 @@ def update_tabular(lines):
|
||||
tmp.append('\\end_inset ')
|
||||
tmp.append('')
|
||||
tmp.append('')
|
||||
tail = lines[i:]
|
||||
lines[i:] = []
|
||||
lines.extend(tmp)
|
||||
lines.extend(tail)
|
||||
lines[i:i] = tmp
|
||||
|
||||
i = i + len(tmp)
|
||||
|
||||
|
@ -25,23 +25,18 @@ floats = {
|
||||
"margin": ["\\begin_inset Marginal",
|
||||
"collapsed true"],
|
||||
"fig": ["\\begin_inset Float figure",
|
||||
"placement htbp",
|
||||
"wide false",
|
||||
"collapsed false"],
|
||||
"tab": ["\\begin_inset Float table",
|
||||
"placement htbp",
|
||||
"wide false",
|
||||
"collapsed false"],
|
||||
"alg": ["\\begin_inset Float algorithm",
|
||||
"placement htbp",
|
||||
"wide false",
|
||||
"collapsed false"],
|
||||
"wide-fig": ["\\begin_inset Float figure",
|
||||
"placement htbp",
|
||||
"wide true",
|
||||
"collapsed false"],
|
||||
"wide-tab": ["\\begin_inset Float table",
|
||||
"placement htbp",
|
||||
"wide true",
|
||||
"collapsed false"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user