We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f8ccf6 commit 68b4afcCopy full SHA for 68b4afc
ddg_parse_html.py
@@ -130,6 +130,7 @@ def get_declaration(root_el, name):
130
'''
131
def process_description(el):
132
char_limit = 200
133
+ min_paren_size = 40
134
135
el = deepcopy(el) # we'll modify the tree
136
el.tag = 'root'
@@ -174,7 +175,10 @@ def process_description(el):
174
175
if open_count == 0 and open_paren_count > 0:
176
open_paren_count -= 1
177
if open_paren_count == 0:
- del_ranges.append((last_paren_open, t.start()+1))
178
+ end = t.start()+1
179
+ text = desc[last_paren_open:end]
180
+ if text.find('ᚃ') != -1 or len(text) > min_paren_size:
181
+ del_ranges.append((last_paren_open, t.start()+1))
182
183
else:
184
if mt[1] != '/':
0 commit comments