mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Meta: Dont finish lines with only one character in lint-ports.py
This commit is contained in:
parent
752d9d7c03
commit
ae845835d6
Notes:
sideshowbarker
2024-07-16 20:21:48 +09:00
Author: https://github.com/cammo1123 Commit: https://github.com/SerenityOS/serenity/commit/ae845835d6 Pull-request: https://github.com/SerenityOS/serenity/pull/20070 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ def get_script_props(dir: str, script_name: str, props: dict, depth: int = 0, ma
|
|||
continue
|
||||
|
||||
if (value.startswith(('"', "'"))):
|
||||
if (value.endswith(value[0])):
|
||||
if (value.endswith(value[0]) and len(value) > 1):
|
||||
value = value[1:-1]
|
||||
else:
|
||||
buffer += "\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue