From 5d7fbd42c786889bb403b82c952de1f949fe7203 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sun, 21 Feb 2016 23:17:47 -0500 Subject: [PATCH] clean up TORRENT_FINAL and TORRENT_OVERRIDE in documentation --- docs/gen_reference_doc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/gen_reference_doc.py b/docs/gen_reference_doc.py index 10c0645f4..029e95801 100644 --- a/docs/gen_reference_doc.py +++ b/docs/gen_reference_doc.py @@ -149,6 +149,7 @@ def is_visible(desc): return True def highlight_signature(s): + s = s.replace('TORRENT_OVERRIDE', 'override').replace('TORRENT_FINAL', 'final') name = s.split('(', 1) name2 = name[0].split(' ') if len(name2[-1]) == 0: return s @@ -273,7 +274,8 @@ def parse_class(lno, lines, filename): state = 'private' class_type = 'class' - name = decl.split(':')[0].replace('class ', '').replace('struct ', '').replace('TORRENT_FINAL', '').strip() + decl = decl.replace('TORRENT_FINAL', 'final') + name = decl.split(':')[0].replace('class ', '').replace('struct ', '').replace('final', '').strip() while lno < len(lines):