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?
Example:
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)
- Well, a leading space causes the parser to wrap it in a
<pre>
tag, even if you're not using that tag directly.
- Well, a leading space causes the parser to wrap it in a
- 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 (contact) 07:29, 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: