Skip to content

Commit 7352ebd

Browse files
Changed the index2ddg.py format to conform with the new DDG Fathead template
1 parent 982c9eb commit 7352ebd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index2ddg.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,13 @@ def build_abstract(decls, desc):
252252
print(all_code + desc)
253253
print("# END ========")
254254

255-
return all_code + desc
255+
result_lines = [
256+
'<section class="prog__container">',
257+
'<p>' + desc + '</p>',
258+
all_code,
259+
'</section>'
260+
]
261+
return ''.join(result_lines)
256262

257263
''' Outputs additional redirects for an identifier.
258264

0 commit comments

Comments
 (0)