From owner-freebsd-doc@FreeBSD.ORG Mon Sep 30 19:36:47 2013 Return-Path: Delivered-To: freebsd-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 01BEEEF1 for ; Mon, 30 Sep 2013 19:36:47 +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 AFA272F85 for ; Mon, 30 Sep 2013 19:36:46 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r8UJai0a047395; Mon, 30 Sep 2013 13:36:44 -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 r8UJaiub047392; Mon, 30 Sep 2013 13:36:44 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 30 Sep 2013 13:36:44 -0600 (MDT) From: Warren Block To: Randy Pratt Subject: Re: Docbook: programlisting and screen In-Reply-To: <20130930100742.bb97c7e5ed071c1c37c42194@embarqmail.com> Message-ID: References: <20130930100742.bb97c7e5ed071c1c37c42194@embarqmail.com> 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]); Mon, 30 Sep 2013 13:36:44 -0600 (MDT) Cc: freebsd-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: Mon, 30 Sep 2013 19:36:47 -0000 On Mon, 30 Sep 2013, Randy Pratt wrote: > I've noticed that trying to copy content from the rendered Handbook > from a browser does not retain the line breaks in some places. This > occurs for material that are contained within a or > elements. > > As an example, try to copy and paste some content from the section > 30.6.5.5. for "An Example Stateful Ruleset" into a text editor. > (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html) > > The result is the entire copied content is a single line which would > require a lot of tedious editing. I've tried different browsers with > the same result. I finally ended using the xml source to do the > copy. > > I seem to remember being able to do a copy but it was probably > when sgml was used. Is there some way to make it easier to copy > these sections? Firefox on FreeBSD does this for me also. Interestingly, IE on Windows copies and pastes that example fine. Firefox does not, on either FreeBSD or Windows. Midori on FreeBSD pastes it correctly. Either a new Firefox bug, or maybe a default setting that changed?