Zeige die echten Produktwerte aus der Trefferliste und vermeide doppelte RAM/Speicher-Schluessel.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
33336bcb6e
commit
e6d53e0eeb
6 files changed
+142
-34
No files matched your search
@@ -168,9 +168,11 @@ def _definition_list(node: Any) -> dict[str, str]:
|
||||
if isinstance(child, str):
|
||||
continue
|
||||
if child.tag == "dt":
|
||||
pending = re.sub(r"\s+", " ", node_text(child)).strip()
|
||||
pending = re.sub(r"\s+", " ", node_text(child)).strip().rstrip(":")
|
||||
elif child.tag == "dd" and pending:
|
||||
pairs[pending] = re.sub(r"\s+", " ", node_text(child)).strip()
|
||||
value = re.sub(r"\s+", " ", node_text(child)).strip()
|
||||
if value:
|
||||
pairs[pending] = value
|
||||
pending = None
|
||||
return
|
||||
for child in current.children:
|
||||
|
||||
Reference in new issue
Block a user