Re: Lines don't wrap in some threads
As far as I can tell, the code boxes are pretty much just <pre> tags with css style applied to them to put boxes and information around them to make it clear that someone is pasting code. While this is handy for making sure the browser doesn't take pasted terminal commands as a command to execute, or to allow people to see html and css fragments in the name of teaching out, it leaves us open to a mess when people copy and paste straight from the terminal to provide information for trouble shooting, and the output gets messed up due to some issue or another.
Firefox, as far as I can tell, is displaying the blocks in question correctly, while the browsers who are displaying everything the "correct" width are taking some liberties on how to display things. In this case, it's helpful for the readability of the thread...
If we wanted to "correct" for this, it would be a change to the css for the forum. If we can figure out what class is used to format the code boxes, we could add an overflow: hidden; or overflow: scroll; to that class so that it will stay within the width it should. The latter would be the better option, as in the cases where there is actual code that goes past the overflow point, one could scroll sideways to see it.
As far as I can tell, the code boxes are pretty much just <pre> tags with css style applied to them to put boxes and information around them to make it clear that someone is pasting code. While this is handy for making sure the browser doesn't take pasted terminal commands as a command to execute, or to allow people to see html and css fragments in the name of teaching out, it leaves us open to a mess when people copy and paste straight from the terminal to provide information for trouble shooting, and the output gets messed up due to some issue or another.
Firefox, as far as I can tell, is displaying the blocks in question correctly, while the browsers who are displaying everything the "correct" width are taking some liberties on how to display things. In this case, it's helpful for the readability of the thread...
If we wanted to "correct" for this, it would be a change to the css for the forum. If we can figure out what class is used to format the code boxes, we could add an overflow: hidden; or overflow: scroll; to that class so that it will stay within the width it should. The latter would be the better option, as in the cases where there is actual code that goes past the overflow point, one could scroll sideways to see it.
Comment