diff --git a/IPython/nbconvert/templates/html/full.tpl b/IPython/nbconvert/templates/html/full.tpl index 8461ae5..74d87a9 100644 --- a/IPython/nbconvert/templates/html/full.tpl +++ b/IPython/nbconvert/templates/html/full.tpl @@ -32,6 +32,21 @@ pre { margin: 0px; font-size: 13px; } + +@media print { + div.cell { + display: block; + page-break-inside: avoid; + } + div.output_wrapper { + display: block; + page-break-inside: avoid; + } + div.output { + display: block; + page-break-inside: avoid; + } +}