From owner-freebsd-doc@FreeBSD.ORG Sun Jul 28 17:00:29 2013 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E2F57D2C for ; Sun, 28 Jul 2013 17:00:29 +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 9C0852225 for ; Sun, 28 Jul 2013 17:00:29 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r6SH0SAZ009878 for ; Sun, 28 Jul 2013 11:00:28 -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 r6SH0SrN009875 for ; Sun, 28 Jul 2013 11:00:28 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 28 Jul 2013 11:00:28 -0600 (MDT) From: Warren Block To: doc@FreeBSD.org Subject: Another CSS suggestion: pre-wrap Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 28 Jul 2013 11:00:28 -0600 (MDT) 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:00:30 -0000 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?