Exemplo n.º 1
0
def write_mergecells(ws):
    """Write merged cells to xml."""

    merged = [MergeCell(str(ref)) for ref in ws.merged_cells]

    if merged:
        return MergeCells(mergeCell=merged).to_tree()
Exemplo n.º 2
0
def write_mergecells(worksheet):
    """Write merged cells to xml."""

    merged = [MergeCell(ref) for ref in worksheet._merged_cells]

    if merged:
        return MergeCells(mergeCell=merged).to_tree()
Exemplo n.º 3
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
Exemplo n.º 4
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
     for cr in merged.mergeCell:
         self.ws._clean_merge_range(cr)
Exemplo n.º 5
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     for c in merged.mergeCell:
         self.ws.merge_cells(c.ref)
Exemplo n.º 6
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     for c in merged.mergeCell:
         self.ws.merge_cells(c.ref)
Exemplo n.º 7
0
 def parse_merge(self, element):
     merged = MergeCells.from_tree(element)
     self.ws.merged_cells.ranges = merged.mergeCell
     for cr in merged.mergeCell:
         self.ws._clean_merge_range(cr)