You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In notebooks that print multiple lines of text in the output of a cell, the conversion generates a single <p> element with all the text. However, by default newlines are not shown by <p> unless it has style white-space: pre-wrap, therefore, the resulting HTML page lacks the line breaks.
This problem does not happen when invoking nbconvert with --to html. There, the output is converted to a <pre> element.
I tried to find the cause in the code, but I am not familiar with the internals of nbconvert, so I couldn't find anything. Can you help? Thanks.
The text was updated successfully, but these errors were encountered:
After digging a bit more, I have seen that there is a template and that changing the block output to have <pre> instead of <p> fixes my issue. I don't know if this may cause undesired effects.
In case such a modification is not deemed appropriate, I have seen that it's possible to specify the template for nbconvert (with --template), so I can address this problem without any modification to nb2mail.
In notebooks that print multiple lines of text in the output of a cell, the conversion generates a single
<p>
element with all the text. However, by default newlines are not shown by<p>
unless it has stylewhite-space: pre-wrap
, therefore, the resulting HTML page lacks the line breaks.This problem does not happen when invoking nbconvert with
--to html
. There, the output is converted to a<pre>
element.I tried to find the cause in the code, but I am not familiar with the internals of nbconvert, so I couldn't find anything. Can you help? Thanks.
The text was updated successfully, but these errors were encountered: