File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ def html2groff(data, name):
210
210
211
211
if idx :
212
212
class_name = name
213
+ if class_name .startswith ('std::' ):
214
+ normalized_class_name = class_name [len ('std::' ):]
213
215
class_member_content = data [:idx ]
214
216
secs = re .findall (r'\.SH "(.+?)"(.+?)\.SE' , class_member_content , re .S )
215
217
@@ -222,10 +224,10 @@ def html2groff(data, name):
222
224
content2 = re .sub (r'\n\.IP "([^:]+?)"' , r'\n.IP "%s::\1"'
223
225
% class_name , content )
224
226
# Replace (constructor) (destructor)
225
- content2 = re .sub (r'\(constructor\)' , r'%s' % class_name ,
226
- content2 )
227
- content2 = re .sub (r'\(destructor\)' , r'~%s' % class_name ,
228
- content2 )
227
+ content2 = re .sub (r'\(constructor\)' , r'%s' %
228
+ normalized_class_name , content2 )
229
+ content2 = re .sub (r'\(destructor\)' , r'~%s' %
230
+ normalized_class_name , content2 )
229
231
data = data .replace (content , content2 )
230
232
231
233
blocks = re .findall (r'\.IBEGIN\s*(.+?)\s*\n(.+?)\.IEND' , data , re .S )
You can’t perform that action at this time.
0 commit comments