Skip to content

Commit

Permalink
bug fix in repr_*_
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Jun 1, 2019
1 parent 22df0dc commit 508cd1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mechcite/bibliography.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def _tbl_writer(self, writer, italic):

def _repr_markdown_(self):
writer = self._tbl_writer(MarkdownTableWriter(), '*{}*')
return writer.write_table()
return writer.dumps()

def _repr_html_(self):
writer = self._tbl_writer(HtmlTableWriter(), '<em>{}</em>')
return writer.write_table()
return writer.dumps()

def _repr_latex_(self):
writer = self._tbl_writer(LatexTableWriter(), r'\textit{{{}}}')
return writer.write_table()
return writer.dumps()

bib = Bibliography()

0 comments on commit 508cd1b

Please # to comment.