merge bleed
This commit is contained in:
parent
46d9e6830c
commit
83b3e075f4
@ -9,8 +9,38 @@ import re
|
||||
|
||||
class tableManager():
|
||||
def __init__(self):
|
||||
pass
|
||||
self.headLine = ''
|
||||
self.defaultSeparators = ['+',';','|',' ']
|
||||
self.noOfHeadLineColumns = 0
|
||||
self.headColumnSep = ''
|
||||
self.rowColumnSep = ''
|
||||
def initialize(self, environment):
|
||||
self.env = environment
|
||||
def shutdown(self):
|
||||
pass
|
||||
def resetTableMode(self):
|
||||
self.setHeadLine()
|
||||
def setHeadColumnSep(self, columnSep = ''):
|
||||
self.headColumnSep = columnSep
|
||||
if columnSep == '':
|
||||
self.noOfHeadLineColumns = 0
|
||||
else:
|
||||
self.counNoOfHeadColumns()
|
||||
def counNoOfHeadColumns(self):
|
||||
pass
|
||||
def searchForHeadColumnSep(self, headLine):
|
||||
if ' ' in headLine:
|
||||
return ' '
|
||||
return ''
|
||||
def setRowColumnSep(self, columnSep = ''):
|
||||
self.rowColumnSep = columnSep
|
||||
|
||||
def setHeadLine(self, headLine = ''):
|
||||
self.setHeadColumnSep()
|
||||
self.setRowColumnSep()
|
||||
if headLine != '':
|
||||
sep = self.searchForHeadColumnSep(headLine)
|
||||
if sep != '':
|
||||
self.headLine = headLine
|
||||
self.setHeadColumnSep(sep)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user