Forum:(Solved) Dealing with out-of-boundary text

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search
Forums: Index > Community help

I already found this (look at the beginning of the next table), but that obviously doesn't solve my problem since it doesn't allow text formatting. My question is, how can I make the site automatically wrap pre-formatted text, without using the <pre> HTML tag, or manually breaking long lines?


echo foreign-architecture i386|sudo tee /etc/dpkg/dpkg.cfg.d/multiarch
sudo apt-get update
sudo rm /usr/share/doc/libgtk2.0-0/changelog.Debian /usr/share/doc/libgail18/changelog.Debian /usr/share/doc/libsdl1.2debian/changelog.Debian.gz /usr/share/doc/gtk2-engines-pixbuf/changelog.Debian /usr/share/doc/libgail-common/changelog.Debian
sudo apt-get --no-install-recommends install ia32-libs-multiarch

Again, thanks in advance. --MYself (talk) 12:57, 15 November 2013 (UTC)

Bump. Any suggestions? --MYself (talk) 21:19, 27 November 2013 (UTC)
Well, a leading space causes the parser to wrap it in a <pre> tag, even if you're not using that tag directly.
Maybe you could try adding something like this to your wiki's MediaWiki:Common.css page?
pre {
	white-space: pre-wrap;       /* CSS 3 */
	white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
	white-space: -pre-wrap;      /* Opera 4-6 */
	white-space: -o-pre-wrap;    /* Opera 7 */
	word-wrap: break-word;       /* Internet Explorer 5.5+ */
--Jack Phoenix ShoutWiki Staff (contact) 07:29, 5 December 2013 (UTC)
Thanks, problem solved. I think that this should be treated as a bug, since I cannot imagine a situation where text leaking is desirable. --MYself (talk) 13:04, 5 December 2013 (UTC)
This may be a good idea to suggest at Bugzilla for Mediawiki. See:
Wikipedia:WP:Bug reports and feature requests --Timeshifter (talk) 05:40, 6 December 2013 (UTC)
Listing through the bug tracker, I found out that this is a pretty common issue:
I don't think there's a need for a new bug report, since the above ones seems to deal with the same task. --MYself (talk) 10:01, 6 December 2013 (UTC)