Skip to content

Commit

Permalink
Fix regression from 3e0e828
Browse files Browse the repository at this point in the history
  • Loading branch information
jtackaberry committed Jul 24, 2021
1 parent d16a07b commit 64987a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,7 @@ def _render_classmod(self, topref, out):
out('<td class="meta"></td>')
nmeta -= 1
_, _, ref.md = self._content_to_markdown(ref.content)
if not fields_compact:
md, _ = self._get_first_sentence(ref.md)
md = self._get_first_sentence(ref.md)[0] if not fields_compact else ref.md
if md:
out('<td class="doc">{}</td>'.format(self._markdown_to_html(md)))
out('</tr>')
Expand Down Expand Up @@ -666,8 +665,7 @@ def _render_classmod(self, topref, out):
out('<td class="meta"></td>')
meta -= 1
ref.params, ref.returns, ref.md = self._content_to_markdown(ref.content)
if not functions_compact:
md, _ = self._get_first_sentence(ref.md)
md = self._get_first_sentence(md)[0] if not functions_compact else md
out('<td class="doc">{}</td>'.format(self._markdown_to_html(md)))
out('</tr>')
out('</table>')
Expand Down

0 comments on commit 64987a7

Please sign in to comment.