From owner-freebsd-doc@FreeBSD.ORG Sun Jul 28 19:17:22 2013 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 15686A1A; Sun, 28 Jul 2013 19:17:22 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BADC026AC; Sun, 28 Jul 2013 19:17:21 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r6SJHKZY010883; Sun, 28 Jul 2013 13:17:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r6SJHKnh010880; Sun, 28 Jul 2013 13:17:20 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 28 Jul 2013 13:17:20 -0600 (MDT) From: Warren Block To: Gabor Kovesdan Subject: Re: Another CSS suggestion: pre-wrap In-Reply-To: <51F56688.5040900@FreeBSD.org> Message-ID: References: <51F558D2.1010808@FreeBSD.org> <51F56688.5040900@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 28 Jul 2013 13:17:20 -0600 (MDT) Cc: doc@FreeBSD.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jul 2013 19:17:22 -0000 On Sun, 28 Jul 2013, Gabor Kovesdan wrote: > On 2013.07.28. 19:45, Gabor Kovesdan wrote: >> On 2013.07.28. 19:00, Warren Block wrote: >>> Long lines in screen and programlisting elements run off the right side of >>> the screen with the current CSS. >>> >>> It would be great to have them wrap and include a visible a line wrap >>> indicator, but that may not be possible, or may require Javascript. >>> >>> Better than nothing is to have them at least have forced wrapping based on >>> screen width. That can be done with changes in div.screen and >>> div.programlisting: >>> >>> - white-space: pre; >>> + white-space: pre-wrap; >>> >>> This seems to work well, other than there being no visible marker where a >>> line is wrapped due to screen width. >>> >>> Is there a better way to accomplish this? >> This seems to work: >> http://iany.me/2012/02/css-line-wrap-indicator/ >> >> The wrapping of programlisting content into span elements can be done in >> XSLT. > This seems to does the XSLT-part, although it may be done in a better way > since it breaks some DocBook features that we don't use: > http://kovesdan.org/patches/xhtml-wrap.diff Nice! Which DocBook features would be compromised? Are there any other reasons not to start using this now?