From aab42c3cffeabc542d6821bdb55c7a4743a803f7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 3 Dec 2021 20:05:37 +0200 Subject: [PATCH] Skip library.properties "paragraph" if total len >= 1000 --- platformio/package/manifest/parser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platformio/package/manifest/parser.py b/platformio/package/manifest/parser.py index 4028c276..54417c0c 100644 --- a/platformio/package/manifest/parser.py +++ b/platformio/package/manifest/parser.py @@ -517,8 +517,11 @@ class LibraryPropertiesManifestParser(BaseManifestParser): for k in ("sentence", "paragraph"): if k in properties and properties[k] not in lines: lines.append(properties[k]) - if len(lines) == 2 and not lines[0].endswith("."): - lines[0] += "." + if len(lines) == 2: + if not lines[0].endswith("."): + lines[0] += "." + if len(lines[0]) + len(lines[1]) >= 1000: + del lines[1] return " ".join(lines) def _parse_keywords(self, properties):