Skip to content

Commit e73ad78

Browse files
committed
odb: fix Black formatting in generate_railroad_diagrams.py
Signed-off-by: Sparsh Karna <sparsh2005karna@gmail.com>
1 parent b790ae2 commit e73ad78

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/odb/doc/generate_railroad_diagrams.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@
4848
def fix_svg_background(svg_path: Path) -> None:
4949
"""Inject a solid background colour into an SVG file."""
5050
content = svg_path.read_text(encoding="utf-8")
51-
style_block = (
52-
"<style>\n"
53-
f" :root {{ --diagram-bg: {DIAGRAM_BG}; }}\n"
54-
"</style>"
55-
)
51+
style_block = "<style>\n" f" :root {{ --diagram-bg: {DIAGRAM_BG}; }}\n" "</style>"
5652
content = re.sub(r"(<svg[^>]*>)", r"\1" + style_block, content, count=1)
5753
content = re.sub(
5854
r"(<svg\b)([^>]*>)",
@@ -126,7 +122,8 @@ def generate(name: str) -> None:
126122
subprocess.run(
127123
[
128124
"java",
129-
"-cp", classpath,
125+
"-cp",
126+
classpath,
130127
"de.bottlecaps.railroad.Railroad",
131128
"-noembedded",
132129
f"-out:{zip_file}",

0 commit comments

Comments
 (0)