Skip to content

Commit 41175e3

Browse files
author
p12
committed
Transform/DDG: remove useless description trimming (we do this already)
1 parent 44fab54 commit 41175e3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ddg_parse_html.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,6 @@ def process_description(el, debug=False):
203203
if debug:
204204
print("PAREN: " + desc)
205205

206-
# limit the number of characters
207-
num_code = desc.count('<code>')
208-
num_i = desc.count('<i>')
209-
num_b = desc.count('<b>')
210-
limit = char_limit + num_code * 13 + num_i * 7 + num_b * 7
211-
desc = desc[:limit]
212-
213206
# find the first dot, actual limit when ignoring the tags
214207
last_open = -1
215208
last_close = 0

0 commit comments

Comments
 (0)