mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Skip library.properties "paragraph" if total len >= 1000
This commit is contained in:
@ -517,8 +517,11 @@ class LibraryPropertiesManifestParser(BaseManifestParser):
|
|||||||
for k in ("sentence", "paragraph"):
|
for k in ("sentence", "paragraph"):
|
||||||
if k in properties and properties[k] not in lines:
|
if k in properties and properties[k] not in lines:
|
||||||
lines.append(properties[k])
|
lines.append(properties[k])
|
||||||
if len(lines) == 2 and not lines[0].endswith("."):
|
if len(lines) == 2:
|
||||||
lines[0] += "."
|
if not lines[0].endswith("."):
|
||||||
|
lines[0] += "."
|
||||||
|
if len(lines[0]) + len(lines[1]) >= 1000:
|
||||||
|
del lines[1]
|
||||||
return " ".join(lines)
|
return " ".join(lines)
|
||||||
|
|
||||||
def _parse_keywords(self, properties):
|
def _parse_keywords(self, properties):
|
||||||
|
Reference in New Issue
Block a user