https://github.com/ukoethe/vigra/issues/529
https://github.com/ukoethe/vigra/pull/594

From 5c2c21f7075836cdab84457632480a1cfabcec0f Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Wed, 4 Dec 2024 23:36:44 +0200
Subject: [PATCH] Move away from inline global regex flag

Fixes: https://github.com/ukoethe/vigra/issues/529
Signed-off-by: Alfred Wingate <parona@protonmail.com>
--- a/docsrc/post.py
+++ b/docsrc/post.py
@@ -85,18 +85,18 @@ headingSummary = re.compile(r'''(<!-- Generated by Doxygen .+ -->
 </div>
 <div class="header">)
   <div class="summary">
-(?s).*?</div>''')
+(?s:.)*?</div>''')
 
 # tested with doxygen 1.8.2
 headingSummary2 = re.compile(r'''(<!-- Generated by Doxygen .+ -->
 </div><!-- top -->
 <div class="header">)
   <div class="summary">
-(?s).*?</div>''')
+(?s:.)*?</div>''')
 
 # tested with doxygen 1.7.5.1
 headingNavpath = re.compile(r'''(<!-- Generated by Doxygen .+ -->)
-  <div id="nav-path" class="navpath">(?s).*?</div>''')
+  <div id="nav-path" class="navpath">(?s:.)*?</div>''')
 
 # tested with doxygen 1.8.2
 headingNavpath2 = re.compile(r'''(<!-- Generated by Doxygen .+ -->)
-- 
2.47.1

