mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove hanging lines from docstrings. (#2349)
* Remove hanging lines from docstrings. Deleted hanging blank lines at the end of docstrings. Regex pattern: - find `\n\n( *)"""` - replace with `\n$1"""`
This commit is contained in:
committed by
GitHub
parent
80f4c12e76
commit
e5033d7d23
@@ -29,7 +29,6 @@ class ScrollViewTester(App[None]):
|
||||
background: $primary-darken-2;
|
||||
border: round red;
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
|
||||
@@ -9,7 +9,6 @@ class AnimApp(App):
|
||||
#foo {
|
||||
height: 1;
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
|
||||
@@ -12,7 +12,6 @@ re_link_ids = re.compile(r"id=[\d\.\-]*?;.*?\x1b")
|
||||
def replace_link_ids(render: str) -> str:
|
||||
"""Link IDs have a random ID and system path which is a problem for
|
||||
reproducible tests.
|
||||
|
||||
"""
|
||||
return re_link_ids.sub("id=0;foo\x1b", render)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user