Skip to content

Commit

Permalink
Merge 5360c40 into f0c491f
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLister-STFC committed Oct 28, 2019
2 parents f0c491f + 5360c40 commit f8d7251
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fitbenchmarking/resproc/rst_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,12 @@ def convert_rst_to_html(table_data):
"""

rst_content = '.. include:: ' + \
str(os.path.join(SCRIPT_DIR, 'color_definitions.txt'))
rst_content += '\n' + table_data
str(os.path.join(SCRIPT_DIR, 'color_definitions.txt')) \
+ '\n\n'
rst_content += '.. table:: FitBenchmarking Results\n'
rst_content += ' :widths: auto\n\n'
table_str = ' ' + table_data.replace('\n', '\n ')
rst_content += table_str + '\n\n'
table_data = publish_string(rst_content, writer_name='html')

return table_data
Expand Down

0 comments on commit f8d7251

Please sign in to comment.