Skip to content

Commit

Permalink
change abstract to details
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeolson committed Jan 8, 2024
1 parent a427812 commit a706bfc
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions util/readme2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,13 @@ def table_cell(self, text, align=None, head=False):
if 'abstract:' in text:
text, abstracttext = text.split('abstract:')
abstract = f"""\
<p>
<a data-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
[abstract]
</a>
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
{abstracttext}
</div>
</div>
<details><summary style="display: block;">[abstract]</summary>
<div class="card card-body">
<p>
{abstracttext}
</p>
</div>
</details>
"""
return html + '>' + text + abstract + '</' + tag + '>\n'

Expand Down

0 comments on commit a706bfc

Please sign in to comment.