|
|
|
@ -546,6 +546,19 @@ class plasma(samba):
|
|
|
|
|
[],"",[],
|
|
|
|
|
False,False),
|
|
|
|
|
xmlFields[0])
|
|
|
|
|
# Добавление переводов строк между полями
|
|
|
|
|
if xmlFields:
|
|
|
|
|
for node in xmlFields:
|
|
|
|
|
# Добавление перевода строк в если его нет между полями
|
|
|
|
|
if self.docObj.getTypeField(node) == "var" and\
|
|
|
|
|
node.previousSibling and\
|
|
|
|
|
not (self.docObj.getTypeField(node.previousSibling) in\
|
|
|
|
|
("br","comment")):
|
|
|
|
|
xmlArea.insertBefore(self.docObj.createField("br",
|
|
|
|
|
[],"",[],
|
|
|
|
|
False,
|
|
|
|
|
False),
|
|
|
|
|
node)
|
|
|
|
|
# Если последним полем BR, удаляем его
|
|
|
|
|
if xmlFields and self.docObj.getTypeField(xmlFields[-1]) == "br":
|
|
|
|
|
if not xmlFields[-1].nextSibling:
|
|
|
|
|