#!/usr/bin/env python3 """Verify no double hyphens outside style tags.""" import re with open('/root/projects/itpp-infrastructure/projects/hotnow-savannah-v2.html') as f: html = f.read() # Split by style tags parts = re.split(r'()', html, flags=re.DOTALL) count = 0 for part in parts: if not part.startswith('