summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xproposals.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/proposals.py b/proposals.py
index bd8c9ad..37e8ead 100755
--- a/proposals.py
+++ b/proposals.py
@@ -58,6 +58,19 @@ def is_stub(doc):
# detect proposals without headings as stubs
return True
+ if not any(
+ n
+ for n in doc.nodes
+ # any text
+ if isinstance(n, mwparserfromhell.nodes.text.Text)
+ # other than newlines
+ and n.strip()
+ # and "Please comment on the [[{{TALKPAGENAME}}|discussion page]]."
+ and n.strip() not in ('Please comment on the', '.')
+ ):
+ # detect proposals without text as stubs
+ return True
+
return False