From 893894c7db84fc2f6610539350c69563ba4495df Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Fri, 7 Jan 2022 14:43:41 -0800 Subject: [PATCH] Check for merged Privacy/Security sections, since that's now disallowed. Fixes #2120. --- bikeshed/headings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bikeshed/headings.py b/bikeshed/headings.py index cb10849ebd..3bfc15bc6c 100644 --- a/bikeshed/headings.py +++ b/bikeshed/headings.py @@ -65,8 +65,12 @@ def checkPrivacySecurityHeadings(headings): security = True if "privacy" in text and "considerations" in text: privacy = True + if "security" in text and "privacy" in text and "considerations" in text: + warn( + "W3C policy requires Privacy Considerations and Security Considerations to be separate sections, but you appear to have them combined into one.", + el=header, + ) if security and privacy: - # No need to look any further! return if not security and not privacy: warn(