Skip to content

Commit

Permalink
deal with no-prompt's lack of margins by adding padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Mar 24, 2017
1 parent dfe5013 commit 0c83554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions nbconvert/exporters/templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def from_notebook_node(self, nb, resources=None, **kw):
'include_output': not self.exclude_output,
'include_input_prompt': not self.exclude_input_prompt,
'include_output_prompt': not self.exclude_output_prompt,
'no_prompt': self.exclude_input_prompt and self.exclude_output_prompt,
}

# Top level variables are passed to the template_exporter here.
Expand Down
6 changes: 6 additions & 0 deletions nbconvert/templates/html/full.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ div#notebook {
border-top: none;
}
{%- if resources.global_content_filter.no_prompt-%}
div#notebook-container{
padding: 6ex 12ex 8ex 12ex;
}
{%- endif -%}
@media print {
div.cell {
display: block;
Expand Down

0 comments on commit 0c83554

Please sign in to comment.