Skip to content

Commit

Permalink
format report header
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Apr 23, 2022
1 parent f24cfbb commit 0f0bde4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions quantstats/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
<div class="container">

<h1>{{title}} <dt>{{date_range}}</dt></h1>
<h4>{{benchmark_title}}</h4>
<h4>Generated by <a href="http://quantstats.io" target="quantstats">QuantStats</a> (v. {{v}})</h4>
<h4>{{benchmark_title}} Generated by <a href="http://quantstats.io" target="quantstats">QuantStats</a> (v. {{v}})</h4>
<hr>

<div id="left">
Expand Down
2 changes: 1 addition & 1 deletion quantstats/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def html(returns, benchmark=None, rf=0., grayscale=False,
# prepare timeseries
returns = _utils._prepare_returns(returns)
if benchmark is not None:
tpl = tpl.replace('{{benchmark_title}}', f"Benchmark is {benchmark}")
tpl = tpl.replace('{{benchmark_title}}', f"Benchmark is {benchmark} | ")
benchmark = _utils._prepare_benchmark(benchmark, returns.index, rf)
if match_dates is True:
returns, benchmark = _match_dates(returns, benchmark)
Expand Down

0 comments on commit 0f0bde4

Please sign in to comment.