flexablelib 2.0.11__tar.gz → 2.0.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {flexablelib-2.0.11 → flexablelib-2.0.13}/CHANGELOG.md +34 -0
  2. {flexablelib-2.0.11/flexablelib.egg-info → flexablelib-2.0.13}/PKG-INFO +2 -2
  3. {flexablelib-2.0.11 → flexablelib-2.0.13}/README.md +1 -1
  4. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/colors.py +6 -1
  5. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/readers.py +81 -0
  6. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/style_compositions.py +242 -11
  7. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/table.py +523 -6
  8. {flexablelib-2.0.11 → flexablelib-2.0.13/flexablelib.egg-info}/PKG-INFO +2 -2
  9. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib.egg-info/SOURCES.txt +1 -0
  10. {flexablelib-2.0.11 → flexablelib-2.0.13}/package.json +1 -1
  11. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_features.py +65 -7
  12. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_styles.py +23 -1
  13. flexablelib-2.0.13/tests/test_v213_features.py +97 -0
  14. {flexablelib-2.0.11 → flexablelib-2.0.13}/LICENSE +0 -0
  15. {flexablelib-2.0.11 → flexablelib-2.0.13}/MANIFEST.in +0 -0
  16. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/__init__.py +0 -0
  17. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/_speedups.c +0 -0
  18. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/_width_tables.h +0 -0
  19. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/cells.py +0 -0
  20. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/columns.py +0 -0
  21. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/fast.py +0 -0
  22. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/merges.py +0 -0
  23. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/options.py +0 -0
  24. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/table_strings.py +0 -0
  25. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/text_width.py +0 -0
  26. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/utils.py +0 -0
  27. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib/writers.py +0 -0
  28. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib.egg-info/dependency_links.txt +0 -0
  29. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib.egg-info/requires.txt +0 -0
  30. {flexablelib-2.0.11 → flexablelib-2.0.13}/flexablelib.egg-info/top_level.txt +0 -0
  31. {flexablelib-2.0.11 → flexablelib-2.0.13}/setup.cfg +0 -0
  32. {flexablelib-2.0.11 → flexablelib-2.0.13}/setup.py +0 -0
  33. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_cells.py +0 -0
  34. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_columns.py +0 -0
  35. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_excel.py +0 -0
  36. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_issues.py +0 -0
  37. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_merge_edge_matrix.py +0 -0
  38. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_merges.py +0 -0
  39. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_readme_examples.py +0 -0
  40. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_text_width.py +0 -0
  41. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_two_pass_measurement.py +0 -0
  42. {flexablelib-2.0.11 → flexablelib-2.0.13}/tests/test_upstream_issues.py +0 -0
  43. {flexablelib-2.0.11 → flexablelib-2.0.13}/tools/benchmark.py +0 -0
  44. {flexablelib-2.0.11 → flexablelib-2.0.13}/tools/generate_width_tables.py +0 -0
@@ -2,6 +2,40 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.0.13] - 2026-10-28
6
+
7
+ ### Added
8
+ - Research inventory of 89 terminal/pretty-print table libraries across languages
9
+ (see delivery demos / research notes); feature backlog mined into this release.
10
+ - ``Table.zebra`` / ``row_stripe``: alternating body-row colours
11
+ (``None``, odd-only spec, or ``(even, odd)``).
12
+ - ``Table.caption``: centred text below the table (``title`` stays above).
13
+ - ``Table.footer_rows`` + ``Table.footer_color``: style a trailing totals band.
14
+ - ``Table.cell_colors``: per-cell ``{(row, col): spec}`` highlights.
15
+ - ``Table.cell_padding``: override style cell margin; ``show_margin=False`` now
16
+ forces margin 0 (was stored but unused).
17
+ - ``Table.overflow``: ``'wrap'`` / ``'truncate'`` / ``'ellipsis'`` (keeps
18
+ ``auto_wrap`` in sync).
19
+ - ``Table.from_markdown``: import GFM pipe tables (alignment row → col_alignment).
20
+ - Colour specs may be background-only: ``on #rrggbb`` / ``on white``.
21
+
22
+ ## [2.0.12] - 2026-10-28
23
+
24
+ ### Removed
25
+ - ``flush`` style (colour-fill experiments). Use ``blocks`` for borderless
26
+ fills, or any bordered style with ``border_color`` / cell colours.
27
+
28
+ ### Added
29
+ - tabled-compatible style names: ``ascii``, ``modern``, ``sharp``, ``rounded``,
30
+ ``modern_rounded``, ``extended``, ``psql``, ``markdown``, ``re_structured_text``,
31
+ ``dots``, ``ascii_rounded``, ``blank``, ``empty`` (glyphs aligned with
32
+ [tabled](https://github.com/zhiburt/tabled) Style presets).
33
+ - ``Table.border_text(text, where=..., color=..., offset=..., align=...)`` —
34
+ overlay coloured text on horizontal or vertical borders (tabled LineText).
35
+ ``clear_border_texts()`` resets overlays.
36
+ - ``border_color`` documents FG paint of border/rule/junction glyphs on any
37
+ style (including the new tabled names).
38
+
5
39
  ## [2.0.11] - 2026-10-28
6
40
 
7
41
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flexablelib
3
- Version: 2.0.11
3
+ Version: 2.0.13
4
4
  Summary: Flexible console and HTML tables for Python
5
5
  Home-page: https://github.com/Opus-Perpetuus/flexablelib
6
6
  Download-URL:
@@ -355,7 +355,7 @@ flexablelib/ # GitHub repository
355
355
  ├── docs/ issue history and design notes
356
356
  ├── logos/ brand assets — see logos/README.md
357
357
  ├── ARCHITECTURE.md how it all fits together
358
- ├── style_examples.md all 44 styles rendered
358
+ ├── style_examples.md all 56 styles rendered
359
359
  ├── package.json canonical version number; drives the release
360
360
  └── setup.py reads the version from package.json
361
361
  ```
@@ -306,7 +306,7 @@ flexablelib/ # GitHub repository
306
306
  ├── docs/ issue history and design notes
307
307
  ├── logos/ brand assets — see logos/README.md
308
308
  ├── ARCHITECTURE.md how it all fits together
309
- ├── style_examples.md all 44 styles rendered
309
+ ├── style_examples.md all 56 styles rendered
310
310
  ├── package.json canonical version number; drives the release
311
311
  └── setup.py reads the version from package.json
312
312
  ```
@@ -116,7 +116,12 @@ def parse_spec(spec: Union[str, int, None]) -> str:
116
116
 
117
117
  parameters = []
118
118
  # 'on' separates foreground from background: 'bold red on white'.
119
- foreground_part, _, background_part = spec.lower().partition(' on ')
119
+ # A bare 'on <bg>' (Rich-style background-only) is also accepted.
120
+ lowered = spec.lower().strip()
121
+ if lowered.startswith('on '):
122
+ foreground_part, background_part = '', lowered[3:]
123
+ else:
124
+ foreground_part, _, background_part = lowered.partition(' on ')
120
125
 
121
126
  for token in foreground_part.split():
122
127
  if token in ATTRIBUTES:
@@ -399,3 +399,84 @@ def from_excel(table_class, path, sheet=None, has_header: bool = True,
399
399
  # Overlaps or single cells from odd sheets: skip rather than fail.
400
400
  continue
401
401
  return table
402
+
403
+
404
+ def from_markdown(table_class, source, parse_numbers: bool = True, **options):
405
+ """
406
+ Parse a GitHub-flavoured Markdown pipe table into a Table.
407
+
408
+ Accepts a string, a path, or a readable. The separator row
409
+ (``| --- | :---: | ---: |``) sets ``col_alignment`` when present and is
410
+ not stored as data. Round-trips with ``Table.to_markdown()``.
411
+ """
412
+ import os
413
+ if hasattr(source, 'read'):
414
+ text = source.read()
415
+ if isinstance(text, bytes):
416
+ text = text.decode('utf-8')
417
+ elif isinstance(source, (str, bytes, os.PathLike)) and not (
418
+ isinstance(source, str) and '\n' in source
419
+ ) and os.path.isfile(str(source)):
420
+ with open(source, encoding='utf-8') as fh:
421
+ text = fh.read()
422
+ else:
423
+ text = source.decode('utf-8') if isinstance(source, bytes) else str(source)
424
+
425
+ lines = [ln.strip() for ln in text.splitlines() if ln.strip()]
426
+ rows_raw = []
427
+ for ln in lines:
428
+ if '|' not in ln:
429
+ continue
430
+ body = ln[1:] if ln.startswith('|') else ln
431
+ if body.endswith('|'):
432
+ body = body[:-1]
433
+ rows_raw.append([c.strip() for c in body.split('|')])
434
+
435
+ if not rows_raw:
436
+ return _new_table(table_class, [], [], parse_numbers, **options)
437
+
438
+ def _is_sep_row(cells):
439
+ if not cells:
440
+ return False
441
+ for token in cells:
442
+ token = token.strip()
443
+ if not token or '-' not in token:
444
+ return False
445
+ if token.replace(':', '').replace('-', '').strip():
446
+ return False
447
+ return True
448
+
449
+ headers = rows_raw[0]
450
+ align_from_sep = None
451
+ data_start = 1
452
+ if len(rows_raw) > 1 and _is_sep_row(rows_raw[1]):
453
+ align_from_sep = []
454
+ for cell in rows_raw[1]:
455
+ token = cell.strip()
456
+ left = token.startswith(':')
457
+ right = token.endswith(':')
458
+ if left and right:
459
+ align_from_sep.append('c')
460
+ elif right:
461
+ align_from_sep.append('r')
462
+ else:
463
+ align_from_sep.append('l')
464
+ data_start = 2
465
+
466
+ width = len(headers)
467
+ normalized = []
468
+ for row in rows_raw[data_start:]:
469
+ row = list(row)
470
+ if len(row) < width:
471
+ row = row + [''] * (width - len(row))
472
+ elif len(row) > width:
473
+ row = row[:width]
474
+ normalized.append(row)
475
+
476
+ table = _new_table(table_class, headers, normalized, parse_numbers, **options)
477
+ if align_from_sep is not None:
478
+ try:
479
+ table.col_alignment = align_from_sep
480
+ except Exception:
481
+ pass
482
+ return table
@@ -133,7 +133,21 @@ Compositions = namedtuple(
133
133
 
134
134
  # Fill-only (background colours, no border glyphs)
135
135
  'blocks',
136
- 'flush',
136
+
137
+ # tabled-compatible names (https://github.com/zhiburt/tabled)
138
+ 'ascii',
139
+ 'modern',
140
+ 'sharp',
141
+ 'rounded',
142
+ 'modern_rounded',
143
+ 'extended',
144
+ 'psql',
145
+ 'markdown',
146
+ 're_structured_text',
147
+ 'dots',
148
+ 'ascii_rounded',
149
+ 'blank',
150
+ 'empty',
137
151
  ]
138
152
  )
139
153
 
@@ -892,17 +906,54 @@ __style_compositions = Compositions(
892
906
  align_indicator_margin=0,
893
907
  always_center_indicator=False
894
908
  ),
895
- # Flush cell fills: full unicode grid whose cell backgrounds (pad-then-paint)
896
- # meet the border glyphs with no interior gap and never paint over them.
897
- # Horizontal rules also inherit the cell-above background on their dash
898
- # runs so fills meet ─/═ without a dark band. Recommended for coloured
899
- # cells and coloured merges. Same box as pretty_grid.
900
- flush=TableComposition(
901
- superior_header_line=SeparatorLine('╒', '═', '╤', '╕'),
902
- inferior_header_line=SeparatorLine('╞', '═', '╪', '╡'),
903
- superior_header_line_no_header=SeparatorLine('╒', '═', '╤', '╕'),
909
+
910
+ ############################################
911
+ #### tabled-compatible style names ####
912
+ #### https://github.com/zhiburt/tabled ####
913
+ ############################################
914
+ # ascii: full ASCII grid; all rules use '-' (unlike grid which uses '=' under the header).
915
+ ascii=TableComposition(
916
+ superior_header_line=SeparatorLine('+', '-', '+', '+'),
917
+ inferior_header_line=SeparatorLine('+', '-', '+', '+'),
918
+ superior_header_line_no_header=SeparatorLine('+', '-', '+', '+'),
919
+ table_body_line=SeparatorLine('+', '-', '+', '+'),
920
+ table_end_line=SeparatorLine('+', '-', '+', '+'),
921
+ vertical_header_lines=SeparatorLine('|', '|', None, '|'),
922
+ vertical_table_body_lines=SeparatorLine('|', '|', None, '|'),
923
+ margin=CELL_MARGIN,
924
+ align_sensitive=False,
925
+ align_indicator=None,
926
+ centered_indicator_on_sides=False,
927
+ left_and_right_when_centered=False,
928
+ lines_with_indicator=[],
929
+ align_indicator_margin=0,
930
+ always_center_indicator=False
931
+ ),
932
+ # modern: UTF-8 thin box with body horizontals; header rule is also ─ (not ═).
933
+ modern=TableComposition(
934
+ superior_header_line=SeparatorLine('┌', '─', '┬', '┐'),
935
+ inferior_header_line=SeparatorLine('├', '─', '┼', '┤'),
936
+ superior_header_line_no_header=SeparatorLine('┌', '─', '┬', '┐'),
904
937
  table_body_line=SeparatorLine('├', '─', '┼', '┤'),
905
- table_end_line=SeparatorLine('╘', '═', '╧', '╛'),
938
+ table_end_line=SeparatorLine('└', '─', '┴', '┘'),
939
+ vertical_header_lines=SeparatorLine('│', '│', None, '│'),
940
+ vertical_table_body_lines=SeparatorLine('│', '│', None, '│'),
941
+ margin=CELL_MARGIN,
942
+ align_sensitive=False,
943
+ align_indicator=None,
944
+ centered_indicator_on_sides=False,
945
+ left_and_right_when_centered=False,
946
+ lines_with_indicator=[],
947
+ align_indicator_margin=0,
948
+ always_center_indicator=False
949
+ ),
950
+ # sharp: modern frame without body horizontals.
951
+ sharp=TableComposition(
952
+ superior_header_line=SeparatorLine('┌', '─', '┬', '┐'),
953
+ inferior_header_line=SeparatorLine('├', '─', '┼', '┤'),
954
+ superior_header_line_no_header=SeparatorLine('┌', '─', '┬', '┐'),
955
+ table_body_line=None,
956
+ table_end_line=SeparatorLine('└', '─', '┴', '┘'),
906
957
  vertical_header_lines=SeparatorLine('│', '│', None, '│'),
907
958
  vertical_table_body_lines=SeparatorLine('│', '│', None, '│'),
908
959
  margin=CELL_MARGIN,
@@ -913,5 +964,185 @@ __style_compositions = Compositions(
913
964
  lines_with_indicator=[],
914
965
  align_indicator_margin=0,
915
966
  always_center_indicator=False
967
+ ),
968
+ # rounded: sharp with rounded corners.
969
+ rounded=TableComposition(
970
+ superior_header_line=SeparatorLine('╭', '─', '┬', '╮'),
971
+ inferior_header_line=SeparatorLine('├', '─', '┼', '┤'),
972
+ superior_header_line_no_header=SeparatorLine('╭', '─', '┬', '╮'),
973
+ table_body_line=None,
974
+ table_end_line=SeparatorLine('╰', '─', '┴', '╯'),
975
+ vertical_header_lines=SeparatorLine('│', '│', None, '│'),
976
+ vertical_table_body_lines=SeparatorLine('│', '│', None, '│'),
977
+ margin=CELL_MARGIN,
978
+ align_sensitive=False,
979
+ align_indicator=None,
980
+ centered_indicator_on_sides=False,
981
+ left_and_right_when_centered=False,
982
+ lines_with_indicator=[],
983
+ align_indicator_margin=0,
984
+ always_center_indicator=False
985
+ ),
986
+ # modern_rounded: rounded corners with body horizontals.
987
+ modern_rounded=TableComposition(
988
+ superior_header_line=SeparatorLine('╭', '─', '┬', '╮'),
989
+ inferior_header_line=SeparatorLine('├', '─', '┼', '┤'),
990
+ superior_header_line_no_header=SeparatorLine('╭', '─', '┬', '╮'),
991
+ table_body_line=SeparatorLine('├', '─', '┼', '┤'),
992
+ table_end_line=SeparatorLine('╰', '─', '┴', '╯'),
993
+ vertical_header_lines=SeparatorLine('│', '│', None, '│'),
994
+ vertical_table_body_lines=SeparatorLine('│', '│', None, '│'),
995
+ margin=CELL_MARGIN,
996
+ align_sensitive=False,
997
+ align_indicator=None,
998
+ centered_indicator_on_sides=False,
999
+ left_and_right_when_centered=False,
1000
+ lines_with_indicator=[],
1001
+ align_indicator_margin=0,
1002
+ always_center_indicator=False
1003
+ ),
1004
+ # extended: double-line box (all ═/║ junctions).
1005
+ extended=TableComposition(
1006
+ superior_header_line=SeparatorLine('╔', '═', '╦', '╗'),
1007
+ inferior_header_line=SeparatorLine('╠', '═', '╬', '╣'),
1008
+ superior_header_line_no_header=SeparatorLine('╔', '═', '╦', '╗'),
1009
+ table_body_line=SeparatorLine('╠', '═', '╬', '╣'),
1010
+ table_end_line=SeparatorLine('╚', '═', '╩', '╝'),
1011
+ vertical_header_lines=SeparatorLine('║', '║', None, '║'),
1012
+ vertical_table_body_lines=SeparatorLine('║', '║', None, '║'),
1013
+ margin=CELL_MARGIN,
1014
+ align_sensitive=False,
1015
+ align_indicator=None,
1016
+ centered_indicator_on_sides=False,
1017
+ left_and_right_when_centered=False,
1018
+ lines_with_indicator=[],
1019
+ align_indicator_margin=0,
1020
+ always_center_indicator=False
1021
+ ),
1022
+ # psql: PostgreSQL-like; header rule only, no outer frame.
1023
+ psql=TableComposition(
1024
+ superior_header_line=None,
1025
+ inferior_header_line=SeparatorLine(None, '-', '+', None),
1026
+ superior_header_line_no_header=None,
1027
+ table_body_line=None,
1028
+ table_end_line=None,
1029
+ vertical_header_lines=SeparatorLine(None, '|', None, None),
1030
+ vertical_table_body_lines=SeparatorLine(None, '|', None, None),
1031
+ margin=CELL_MARGIN,
1032
+ align_sensitive=False,
1033
+ align_indicator=None,
1034
+ centered_indicator_on_sides=False,
1035
+ left_and_right_when_centered=False,
1036
+ lines_with_indicator=[],
1037
+ align_indicator_margin=0,
1038
+ always_center_indicator=False
1039
+ ),
1040
+ # markdown: GitHub-flavoured markdown pipe table.
1041
+ markdown=TableComposition(
1042
+ superior_header_line=None,
1043
+ inferior_header_line=SeparatorLine('|', '-', '|', '|'),
1044
+ superior_header_line_no_header=SeparatorLine('|', '-', '|', '|'),
1045
+ table_body_line=None,
1046
+ table_end_line=None,
1047
+ vertical_header_lines=SeparatorLine('|', '|', None, '|'),
1048
+ vertical_table_body_lines=SeparatorLine('|', '|', None, '|'),
1049
+ margin=CELL_MARGIN,
1050
+ align_sensitive=False,
1051
+ align_indicator=None,
1052
+ centered_indicator_on_sides=False,
1053
+ left_and_right_when_centered=False,
1054
+ lines_with_indicator=[],
1055
+ align_indicator_margin=0,
1056
+ always_center_indicator=False
1057
+ ),
1058
+ # re_structured_text: RST simple table (== rules, space gutters).
1059
+ re_structured_text=TableComposition(
1060
+ superior_header_line=SeparatorLine(None, '=', ' ', None),
1061
+ inferior_header_line=SeparatorLine(None, '=', ' ', None),
1062
+ superior_header_line_no_header=SeparatorLine(None, '=', ' ', None),
1063
+ table_body_line=None,
1064
+ table_end_line=SeparatorLine(None, '=', ' ', None),
1065
+ vertical_header_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
1066
+ vertical_table_body_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
1067
+ margin=CELL_MARGIN,
1068
+ align_sensitive=False,
1069
+ align_indicator=None,
1070
+ centered_indicator_on_sides=False,
1071
+ left_and_right_when_centered=False,
1072
+ lines_with_indicator=[],
1073
+ align_indicator_margin=0,
1074
+ always_center_indicator=False
1075
+ ),
1076
+ # dots: '.' frame / horizontals and ':' verticals (tabled Style::dots).
1077
+ dots=TableComposition(
1078
+ superior_header_line=SeparatorLine('.', '.', '.', '.'),
1079
+ inferior_header_line=SeparatorLine(':', '.', ':', ':'),
1080
+ superior_header_line_no_header=SeparatorLine('.', '.', '.', '.'),
1081
+ table_body_line=SeparatorLine(':', '.', ':', ':'),
1082
+ table_end_line=SeparatorLine(':', '.', ':', ':'),
1083
+ vertical_header_lines=SeparatorLine(':', ':', None, ':'),
1084
+ vertical_table_body_lines=SeparatorLine(':', ':', None, ':'),
1085
+ margin=CELL_MARGIN,
1086
+ align_sensitive=False,
1087
+ align_indicator=None,
1088
+ centered_indicator_on_sides=False,
1089
+ left_and_right_when_centered=False,
1090
+ lines_with_indicator=[],
1091
+ align_indicator_margin=0,
1092
+ always_center_indicator=False
1093
+ ),
1094
+ # ascii_rounded: '.' / "'" corners, no header or body horizontals.
1095
+ ascii_rounded=TableComposition(
1096
+ superior_header_line=SeparatorLine('.', '-', '-', '.'),
1097
+ inferior_header_line=None,
1098
+ superior_header_line_no_header=SeparatorLine('.', '-', '-', '.'),
1099
+ table_body_line=None,
1100
+ table_end_line=SeparatorLine("'", '-', '-', "'"),
1101
+ vertical_header_lines=SeparatorLine('|', '|', None, '|'),
1102
+ vertical_table_body_lines=SeparatorLine('|', '|', None, '|'),
1103
+ margin=CELL_MARGIN,
1104
+ align_sensitive=False,
1105
+ align_indicator=None,
1106
+ centered_indicator_on_sides=False,
1107
+ left_and_right_when_centered=False,
1108
+ lines_with_indicator=[],
1109
+ align_indicator_margin=0,
1110
+ always_center_indicator=False
1111
+ ),
1112
+ # blank: no rules; columns separated by a space (with cell margin).
1113
+ blank=TableComposition(
1114
+ superior_header_line=None,
1115
+ inferior_header_line=None,
1116
+ superior_header_line_no_header=None,
1117
+ table_body_line=None,
1118
+ table_end_line=None,
1119
+ vertical_header_lines=SeparatorLine(None, ' ', None, None),
1120
+ vertical_table_body_lines=SeparatorLine(None, ' ', None, None),
1121
+ margin=CELL_MARGIN,
1122
+ align_sensitive=False,
1123
+ align_indicator=None,
1124
+ centered_indicator_on_sides=False,
1125
+ left_and_right_when_centered=False,
1126
+ lines_with_indicator=[],
1127
+ align_indicator_margin=0,
1128
+ always_center_indicator=False
1129
+ ),
1130
+ # empty: no chrome and no margin (tabled Style::empty base).
1131
+ empty=TableComposition(
1132
+ superior_header_line=None,
1133
+ inferior_header_line=None,
1134
+ superior_header_line_no_header=None,
1135
+ table_body_line=None,
1136
+ table_end_line=None,
1137
+ vertical_header_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
1138
+ vertical_table_body_lines=SeparatorLine(None, INVISIBLE_SEPARATOR, None, None),
1139
+ margin=0,
1140
+ align_sensitive=False,
1141
+ align_indicator=None,
1142
+ centered_indicator_on_sides=False,
1143
+ left_and_right_when_centered=False,
1144
+ lines_with_indicator=[],
1145
+ align_indicator_margin=0,
1146
+ always_center_indicator=False
916
1147
  )
917
1148
  )