25 _row_continuation_marker =
'...'
44 if cell
and cell[0] ==
'#' or comments:
54 if cell.startswith(
'#'):
56 return ' '.join(cell.split())
60 if any(cell ==
'\\' for cell
in data[:index]):
61 LOGGER.warn(
"Error in file '%s': Escaping empty cells with "
62 "'\\' before line continuation marker '...' is "
63 "deprecated. Remove escaping before Robot "
64 "Framework 3.2." % self.
sourcesource)
66 """ DEBUG: This function is not used
67 def _purge_empty_cells(self, row):
68 # DEBUG Lets not remove empty cells
69 # while row and not row[-1]:
71 # Cells with only a single backslash are considered empty
72 return [cell if cell != '\\' else '' for cell in row]
76 first_non_empty_cell = property
83 while index < len(self.
cellscells)
and self.
cellscells[index] ==
'':
94 return self.
cellscells[0]
if self.
cellscells
else ''
104 return self.
cellscells[1:]
110 return self.
cellscells
118 return self.
cellscells[index:]
119 return self.
cellscells
125 datarow.comments = self.
commentscomments
137 self.__setattr__(self.
headheadhead, head)
142 if head.startswith(
':'):
143 return head.replace(
':',
'').replace(
' ',
'').upper() ==
'FOR'
149 return head
and head[0] ==
'[' and head[-1] ==
']'
152 return self.
headheadhead[1:-1].strip()
159 for cell
in self.
cellscells:
def starts_test_or_user_keyword_setting(self)
def _collapse_whitespace(self, cell)
string _row_continuation_marker
def __init__(self, cells, source=None)
def _deprecate_escaped_cells_before_continuation(self, data)
def first_non_empty_cell(self)
def starts_for_loop(self)
def test_or_user_keyword_setting_name(self)