pypi/inspector

Code that requires horizontal scrolling can easily be missed.

calebbrown opened this issue · 4 comments

I encountered this package that appeared like this in my browser:
package-no-wrap
Being MacOS there was no horizontal scrollbar indicating there was text further to the right.

I added white-space: pre-wrap to the code block and this is what I found:
package-wrapping-on

This solution messes with the line numbers, but it made it obvious where the malicious code was.

The problem may actually be the overflow: auto on the pre[class*=language-] selector

di commented

Fixed in #60.