From 7097f143573ee1c3f5c80970d7454b4f08504bbe 2013-08-07 17:20:37 From: Min RK Date: 2013-08-07 17:20:37 Subject: [PATCH] Merge pull request #3934 from jdfreder/backport_fixes2 nbconvert: fix logic of verbose flag in PDF post processor --- diff --git a/IPython/nbconvert/post_processors/pdf.py b/IPython/nbconvert/post_processors/pdf.py index b585b2a..14f2967 100644 --- a/IPython/nbconvert/post_processors/pdf.py +++ b/IPython/nbconvert/post_processors/pdf.py @@ -45,7 +45,7 @@ class PDFPostProcessor(PostProcessorBase): command = [c.format(filename=input) for c in self.command] self.log.info("Building PDF: `%s`", ' '.join(command)) with open(os.devnull, 'wb') as null: - stdout = null if self.verbose else None + stdout = null if not self.verbose else None for index in range(self.iteration_count): p = subprocess.Popen(command, stdout=stdout) p.wait()