Skip to content

Commit 6f82497

Browse files
committed
update bootstrap to 4.0+, fixes visualization of tabs
1 parent d2d7631 commit 6f82497

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fmriprep/viz/report.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
77
<title></title>
8-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
9-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
10-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
8+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
9+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
10+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
1111
<style type="text/css">
1212
.sub-report-title {}
1313
.run-title {}

fmriprep/viz/reports.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def generate_report(self):
178178
boiler_idx += 1
179179

180180
if (logs_path / 'CITATION.md').exists():
181-
text = '<div class="pre">%s</div>\n' % (logs_path / 'CITATION.md').read_text()
181+
text = '<pre>%s</pre>\n' % (logs_path / 'CITATION.md').read_text()
182182
boilerplate.append((boiler_idx, 'Markdown', text))
183183
boiler_idx += 1
184184

@@ -187,9 +187,9 @@ def generate_report(self):
187187
text = re.compile(
188188
r'\\begin{document}(.*?)\\end{document}',
189189
re.DOTALL | re.IGNORECASE).findall(text)[0].strip()
190-
text = '<div class="pre">%s</div>\n' % text
190+
text = '<pre>%s</pre>\n' % text
191191
text += '<h3>Bibliography</h3>\n'
192-
text += '<div class="pre">%s</div>\n' % Path(
192+
text += '<pre>%s</pre>\n' % Path(
193193
pkgrf('fmriprep', 'data/boilerplate.bib')).read_text()
194194
boilerplate.append((boiler_idx, 'LaTeX', text))
195195
boiler_idx += 1

0 commit comments

Comments
 (0)