Luke Plant avatar Luke Plant committed 1635fae

Variable rename

Comments (0)

Files changed (1)

semanticeditor/utils/presentation.py

                                "Please move the heading out of the '%(element)s'"
                                " element that contains it." % dict(name=name, element=parent.tag))
 
-def _apply_commands(root, section_nodes, styleinfo, headers):
+def _apply_commands(root, section_nodes, styleinfo, structure):
     # Rules:
     #  - No nesting of columns within columns
     #  - Within a given row, newcolumn must be applied to
     #    divs that are at the same level.
     #  - No columns allowed if newrow has not been started.
 
-    # Headers has the sections in document order
+    # 'structure' has the sections in document order
     sections = [(level, name, section_nodes[name])
-                for level, name, tag, n in headers]
+                for level, name, tag, n in structure]
 
     # Inverted dict
     known_nodes = _invert_dict(section_nodes)
 
     # Preprocess:
     #  - insert 'newcolumn' on everything that has 'newrow'
-    for level, name, tag, hn in headers:
+    for level, name, tag, hn in structure:
         if NEWROW in styleinfo[name]:
             styleinfo[name].add(NEWCOL)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.