Modify ↓
Opened 16 years ago
Closed 15 years ago
#6712 closed defect (duplicate)
Section edit for numbered headlines
| Reported by: | Owned by: | Catalin BALAN | |
|---|---|---|---|
| Priority: | normal | Component: | SectionEditPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description (last modified by )
Section edit does not work with numbered sections (NumberedHeadlinesPlugin) 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):
Attachments (0)
Change History (1)
comment:1 Changed 15 years ago by
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



Fixed in #5460.