def _tag_current_cell(self):
        self.tag_remove("current_cell", 1.0, "end")
        (start, end) = self.current_cell()
        self.tag_add("current_cell", start, end)
        return
        i = self.search(" \| ", "insert", stopindex="insert linestart", 
                        backwards=True, regexp=True)
        if i == "":
            cell_start = self.index("insert linestart")
        else:
            cell_start = self.search(r'[^\s]', i % "%s+3c", regexp=True)

        i = self.search(" +\| ", cell_start, stopindex="insert lineend", regexp=True)
        if i == "":
            cell_end = self.index("insert lineend")
        else:
            cell_end = i
        self.tag_remove("current_cell", 1.0, "end")
        self.tag_add("current_cell", cell_start, cell_end)
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/widgets/dte.py/DynamicTableEditor._tag_current_cell/swapped operands of `%`