Jupyter-book: Code cell pre-wrap causes split lines

Created on 17 Apr 2019  路  2Comments  路  Source: executablebooks/jupyter-book

I believe that in #180 we told code cells to wrap around. Looking at the result, I'm not sure this is what we want. E.g.:

image

To me this is a bit confusing where the line breaks are - I feel like for code cells, we'd actually like overflow-x to be auto instead of wrapping the content.

What do folks think? In particular @alexmorley who worked on that other patch!

bug good first issue

Most helpful comment

yeah - I agree that was a good bug to fix, I think that it'd be a better default to have horizontal scrolling rather than wrapping for code, just to clear up the confusion.

All 2 comments

Yeah. That is a good point. With syntax highlighting it's usually obvious but I would be totally happy with having the scroll behaviour. The bug I was trying to fix was that the scroll behaviour wasn't applied when nolanguage was set for the code cell.

yeah - I agree that was a good bug to fix, I think that it'd be a better default to have horizontal scrolling rather than wrapping for code, just to clear up the confusion.

Was this page helpful?
0 / 5 - 0 ratings