]> git.lyx.org Git - features.git/commitdiff
Cosmetics
authorDekel Tsur <dekelts@tau.ac.il>
Wed, 28 Aug 2002 13:26:39 +0000 (13:26 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Wed, 28 Aug 2002 13:26:39 +0000 (13:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5139 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyxconvert_218.py

index c90e047ff418e58b16b86250a1e7ab9e2c7509a2..6d72f9e61c95d6eb68f064d6c507c123fe2fb49d 100644 (file)
@@ -73,7 +73,7 @@ def remove_oldfloat(lines, language):
        new = floats[floattype]+[""]
        new = new+lines[i2:j]+["\\end_inset ", ""]
 
-       # After a float, all font attribute are reseted.
+       # After a float, all font attributes are reseted.
        # We need to output '\foo default' for every attribute foo
        # whose value is not default before the float.
        # The check here is not accurate, but it doesn't matter
@@ -331,7 +331,7 @@ def get_length(lines, name, start, end):
     x = string.split(lines[i])
     return x[2]+oldunits[int(x[1])]
 
-def append(x, token, value):
+def write_attribute(x, token, value):
     if value != "":
        x.append("\t"+token+" "+value)
 
@@ -376,21 +376,21 @@ def remove_figinset(lines):
            subcaption = 1
 
        new = ["\\begin_inset Graphics FormatVersion 1"]
-       append(new, "filename", filename)
-       append(new, "display", display)
+       write_attribute(new, "filename", filename)
+       write_attribute(new, "display", display)
        if subcaption:
            new.append("\tsubcaption")
-       append(new, "subcaptionText", subcaptionText)
-       append(new, "size_type", size_type)
-       append(new, "width", width)
-       append(new, "height", height)
+       write_attribute(new, "subcaptionText", subcaptionText)
+       write_attribute(new, "size_type", size_type)
+       write_attribute(new, "width", width)
+       write_attribute(new, "height", height)
        if rotateAngle != "":
            new.append("\trotate")
-           append(new, "rotateAngle", rotateAngle)
-       new.append("\trotateOrigin leftBaseline")
-       new.append("\tlyxsize_type 1")
-       append(new, "lyxwidth", lyxwidth)
-       append(new, "lyxheight", lyxheight)
+           write_attribute(new, "rotateAngle", rotateAngle)
+       write_attribute(new, "rotateOrigin", "leftBaseline")
+       write_attribute(new, "lyxsize_type", "1")
+       write_attribute(new, "lyxwidth", lyxwidth)
+       write_attribute(new, "lyxheight", lyxheight)
        new = new + ["\end_inset"]
        lines[i:j+1] = new