@@ -150,7 +150,7 @@ def __row_to_ascii(
150
150
self ,
151
151
left_edge : str ,
152
152
heading_col_sep : str ,
153
- column_seperator : str ,
153
+ column_separator : str ,
154
154
right_edge : str ,
155
155
filler : str | list [SupportsStr ],
156
156
) -> str :
@@ -188,16 +188,16 @@ def __row_to_ascii(
188
188
self .__alignments [col_index ],
189
189
)
190
190
output += col_content
191
- # column seperator
192
- sep = column_seperator
191
+ # column separator
192
+ sep = column_separator
193
193
if col_index == 0 and self .__first_col_heading :
194
194
# use column heading if first column option is specified
195
195
sep = heading_col_sep
196
196
elif col_index == self .__columns - 2 and self .__last_col_heading :
197
197
# use column heading if last column option is specified
198
198
sep = heading_col_sep
199
199
elif col_index == self .__columns - 1 :
200
- # replace last seperator with symbol for edge of the row
200
+ # replace last separator with symbol for edge of the row
201
201
sep = right_edge
202
202
output += sep
203
203
output += "\n "
@@ -216,7 +216,7 @@ def __top_edge_to_ascii(self) -> str:
216
216
return self .__row_to_ascii (
217
217
left_edge = self .__style .top_left_corner ,
218
218
heading_col_sep = self .__style .heading_col_top_tee ,
219
- column_seperator = self .__style .top_tee ,
219
+ column_separator = self .__style .top_tee ,
220
220
right_edge = self .__style .top_right_corner ,
221
221
filler = self .__style .top_and_bottom_edge ,
222
222
)
@@ -231,7 +231,7 @@ def __bottom_edge_to_ascii(self) -> str:
231
231
return self .__row_to_ascii (
232
232
left_edge = self .__style .bottom_left_corner ,
233
233
heading_col_sep = self .__style .heading_col_bottom_tee ,
234
- column_seperator = self .__style .bottom_tee ,
234
+ column_separator = self .__style .bottom_tee ,
235
235
right_edge = self .__style .bottom_right_corner ,
236
236
filler = self .__style .top_and_bottom_edge ,
237
237
)
@@ -246,22 +246,22 @@ def __heading_row_to_ascii(self, row: list[SupportsStr]) -> str:
246
246
return self .__row_to_ascii (
247
247
left_edge = self .__style .left_and_right_edge ,
248
248
heading_col_sep = self .__style .heading_col_sep ,
249
- column_seperator = self .__style .col_sep ,
249
+ column_separator = self .__style .col_sep ,
250
250
right_edge = self .__style .left_and_right_edge ,
251
251
filler = row ,
252
252
)
253
253
254
254
def __heading_sep_to_ascii (self ) -> str :
255
255
"""
256
- Assembles the seperator below the header or above footer of the ascii table
256
+ Assembles the separator below the header or above footer of the ascii table
257
257
258
258
Returns:
259
- The seperator line
259
+ The separator line
260
260
"""
261
261
return self .__row_to_ascii (
262
262
left_edge = self .__style .heading_row_left_tee ,
263
263
heading_col_sep = self .__style .heading_col_heading_row_cross ,
264
- column_seperator = self .__style .heading_row_cross ,
264
+ column_separator = self .__style .heading_row_cross ,
265
265
right_edge = self .__style .heading_row_right_tee ,
266
266
filler = self .__style .heading_row_sep ,
267
267
)
@@ -276,15 +276,15 @@ def __body_to_ascii(self, body: list[list[SupportsStr]]) -> str:
276
276
separation_row = self .__row_to_ascii (
277
277
left_edge = self .__style .row_left_tee ,
278
278
heading_col_sep = self .__style .heading_col_row_cross ,
279
- column_seperator = self .__style .col_row_cross ,
279
+ column_separator = self .__style .col_row_cross ,
280
280
right_edge = self .__style .row_right_tee ,
281
281
filler = self .__style .row_sep ,
282
282
)
283
283
return separation_row .join (
284
284
self .__row_to_ascii (
285
285
left_edge = self .__style .left_and_right_edge ,
286
286
heading_col_sep = self .__style .heading_col_sep ,
287
- column_seperator = self .__style .col_sep ,
287
+ column_separator = self .__style .col_sep ,
288
288
right_edge = self .__style .left_and_right_edge ,
289
289
filler = row ,
290
290
)
0 commit comments