From owner-freebsd-doc@FreeBSD.ORG Sun Jul 28 17:46:24 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 1353D84D for ; Sun, 28 Jul 2013 17:46:24 +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 C0F592368 for ; Sun, 28 Jul 2013 17:46:23 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 0A28714D2516; Sun, 28 Jul 2013 19:46:22 +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 9yY05phvHmUj; Sun, 28 Jul 2013 19:46:16 +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 5727714D250A; Sun, 28 Jul 2013 19:46:16 +0200 (CEST) Message-ID: <51F558D2.1010808@FreeBSD.org> Date: Sun, 28 Jul 2013 19:45:54 +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: In-Reply-To: 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 17:46:24 -0000 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. Gabor