jenkins-bot merged this change.
[bugfix] Ignore references in harvest_template.py
Bug: T227954
Change-Id: I6fcdb342728fecfccd9dca24126698cd0a877d02
---
M scripts/harvest_template.py
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 94404eb..16edcd9 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -267,7 +267,10 @@
# We found the template we were looking for
for field, value in fielddict.items():
field = field.strip()
- value = value.strip()
+ # todo: extend the list of tags to ignore
+ value = textlib.removeDisabledParts(
+ # todo: eventually we may want to import the references
+ value, tags=['ref'], site=page.site).strip()
if not field or not value:
continue
To view, visit change 522734. To unsubscribe, or for help writing mail filters, visit settings.