Skip to content

Commit 5171a1f

Browse files
committed
Automatic backup 2025-09-25
1 parent c8fdd6a commit 5171a1f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rich_tables/fields.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def add_count_bars(
175175
snippet=lambda x: border_panel(syntax(x, "python", indent_guides=True)),
176176
query=lambda x: Text(x, style="bold"),
177177
sql=lambda x: sql_syntax("---\n\n" + x.replace(r"\[", "[")),
178+
parent_id=format_with_color_on_black,
178179
slug=format_with_color_on_black,
179180
)
180181
fields_by_func: dict[Callable[..., RenderableType], Iterable[str]] = {
@@ -186,6 +187,7 @@ def add_count_bars(
186187
"app",
187188
"app_label",
188189
"area",
190+
"artists",
189191
"assignee",
190192
"brand",
191193
"calendar",

rich_tables/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _(value: dict[KT, VT]) -> HashableDict[KT, VT]:
100100

101101

102102
class Pat:
103-
SPLIT_PAT = re.compile(r"[;,] ?")
103+
SPLIT_PAT = re.compile(r"[;,\␀] ?")
104104
PRED_COLOR_PAT = re.compile(r"(pred color)\](.*?)(?=\[/)")
105105
HTML_PARAGRAPH = re.compile(r"</?p>")
106106
OPENING_BRACKET = re.compile(r"\[(?!/)")
@@ -529,8 +529,8 @@ def sql_syntax(sql_string: str) -> Syntax:
529529
strip_whitespace=True,
530530
strip_comments=True,
531531
reindent=True,
532-
# reindent_aligned=True,
533-
compact=True,
532+
reindent_aligned=False,
533+
compact=False,
534534
),
535535
"sql",
536536
)

0 commit comments

Comments
 (0)