Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
t-makaro committed Jul 30, 2019
1 parent 2f28a26 commit 1b90bf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nbconvert/exporters/templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ def from_notebook_node(self, nb, resources=None, **kw):

# Top level variables are passed to the template_exporter here.
output = self.template.render(nb=nb_copy, resources=resources)
if resources.get('strip_preceding_newlines', True):
output = output.lstrip('\r\n')
return output, resources

def _register_filter(self, environ, name, jinja_filter):
Expand Down

0 comments on commit 1b90bf9

Please sign in to comment.