﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
6712,Section edit for numbered headlines,andras.lipoth@…,Catalin BALAN,"Section edit does not work with numbered sections (TracNumberedHeadlinesPlugin) due to different headline format (### instead of ===). The fix is trivial, see below:

{{{
diff --git a/0.11/tracsectionedit/web_ui.py b/0.11/tracsectionedit/web_ui.py
index c93b410..1cd7131 100644
--- a/0.11/tracsectionedit/web_ui.py
+++ b/0.11/tracsectionedit/web_ui.py
@@ -98,6 +98,8 @@ class WikiSectionEditModule(Component):
                 is_code_block = False
             if is_code_block == False and re.match(r'^\s*(={1,5}) .+ \1(?:\s*#.
                 count = count + 1
+            if is_code_block == False and re.match(r'^\s*(#{1,5}) .+ \1(?:\s*#.
+                count = count + 1
             if count < int(section):
                 pre.append(line)
             elif count == int(section):
}}}

",defect,new,normal,SectionEditPlugin,normal,,,,0.11
