Empty code cells where collapsing vertically (to something like 5 px). This
gives them the right height when empty.


On Thu, Mar 6, 2014 at 3:50 PM, Min RK <notifications@github.com> wrote:

> In IPython/nbconvert/filters/highlight.py:
>
> > @@ -56,7 +56,7 @@ def __call__(self, source, language=None, metadata=None):
> >          if not language:
> >              language=self.default_language
> >
> > -        return _pygments_highlight(source, HtmlFormatter(), language, metadata)
> > +        return _pygments_highlight(source if len(source) > 0 else ' ', HtmlFormatter(), language, metadata)
>
> what is the reason for this change?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/ipython/ipython/pull/5232/files#r10367691>
> .
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com