From owner-freebsd-doc@FreeBSD.ORG Sun Jul 28 18:44:55 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 ECCFBF4A for ; Sun, 28 Jul 2013 18:44:55 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A650E2577 for ; Sun, 28 Jul 2013 18:44:55 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id D6A8414D2515; Sun, 28 Jul 2013 20:44:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at !change-mydomain-variable!.example.com Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rjifvhE_TTyc; Sun, 28 Jul 2013 20:44:44 +0200 (CEST) Received: from [192.168.1.117] (catv-80-99-23-232.catv.broadband.hu [80.99.23.232]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 6045F14D2514; Sun, 28 Jul 2013 20:44:44 +0200 (CEST) Message-ID: <51F56688.5040900@FreeBSD.org> Date: Sun, 28 Jul 2013 20:44:24 +0200 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0a2 MIME-Version: 1.0 To: Warren Block , doc@FreeBSD.org Subject: Re: Another CSS suggestion: pre-wrap References: <51F558D2.1010808@FreeBSD.org> In-Reply-To: <51F558D2.1010808@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 18:44:56 -0000 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 Gabor