Skip to content

Commit

Permalink
style: Add missing footer docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Apr 9, 2024
1 parent 4957e87 commit ce82fd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keymap_drawer/draw/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def print_layer_header(self, p: Point, header: str) -> None:
self.out.write(f'<text x="{round(p.x)}" y="{round(p.y)}" class="label">{escape(header)}</text>\n')

def print_footer(self, p: Point) -> None:
"""Print a footer with text given by cfg.footer_text, with CSS class `footer` for bottom-right alignment."""
self.output_stream.write(
f'<text x="{p.x - self.cfg.outer_pad_w}" y="{p.y - self.cfg.outer_pad_h / 2}" class="footer">'
f"{self.cfg.footer_text}</text>"
Expand Down

0 comments on commit ce82fd8

Please sign in to comment.