processing-py-site icon indicating copy to clipboard operation
processing-py-site copied to clipboard

Text area too wide for the right shift reference entry

Open tabreturn opened this issue 4 years ago • 3 comments

The text bursts out of its 'frame' here: https://py.processing.org/reference/rightshift.html

Probably requires a small CSS/HTML fix. I'll look at it later.

tabreturn avatar Dec 02 '20 23:12 tabreturn

This happens on many pages, and looks to be caused by the <pre> tag default broswer styling.

I'm not super up to date on my CSS, but adding the style white-space: pre-wrap; to <pre> tags looks like a possible fix. Not sure about the browser support tho.

FeXd avatar Dec 07 '20 01:12 FeXd

Thanks, @FeXd. Best just to break the offending comment across two lines, then?

tabreturn avatar Dec 07 '20 01:12 tabreturn

I just took a look at the main processing site to see what they do, and the same issue exists. They just have shorter examples.

So @tabreturn I do think the change you suggested of breaking the comment across two lines is the way to go. I might take some time to audit other pages for similar issues.

FeXd avatar Apr 18 '21 21:04 FeXd