FS#35649 - {archweb} no linebreak in codeblocks

Attached to Project: Arch Linux
Opened by Frank Uebbing (quiqueck) - Tuesday, 04 June 2013, 20:41 GMT
Last edited by Dan McGee (toofishes) - Monday, 27 January 2014, 19:19 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

as i am reading the upgrade news on https://www.archlinux.org/ i saw that commands are sometimes longer as the appropriate Box. So commands came out in to the Linklist on the right and arent completly readable.

See the topic https://bbs.archlinux.org/viewtopic.php?id=164483 for a possibly resolution and a Screenshot, wich user Xyne has published.

Thanks
This task depends upon

Closed by  Dan McGee (toofishes)
Monday, 27 January 2014, 19:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in git, will push next release.
Comment by Sid Karunaratne (sakaru) - Tuesday, 04 June 2013, 21:58 GMT
Just so that everything is in one place; the suggested fix is to add "white-space: normal;" either to the <pre> tags or, perhaps more correctly, the <code> tags.
Comment by Frank Uebbing (quiqueck) - Tuesday, 04 June 2013, 22:17 GMT
There is only one css-file with a section like:

pre code{display:block;background:none}

here you can add the line:

pre code{display:block;background:none; white-space:normal;}

But, as Xyne suggests, maybe a scrollbar is a possibilty too.
Comment by Dan McGee (toofishes) - Monday, 10 June 2013, 16:46 GMT
Patches welcome, code and CSS is here: https://projects.archlinux.org/archweb.git/
Comment by Sid Karunaratne (sakaru) - Monday, 10 June 2013, 23:21 GMT
I tried both the multiline and the scrollbar option; I personally prefer the scrollbar one. I've attached a patch which add scrollbars if needed.

Tested on latest firefox and chromium, not on any mobile browsers.

Loading...