From unknown Sat Jun 14 03:57:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59656: An error on your web page (example 7.20) Resent-From: "Tomas Kana " Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Mon, 28 Nov 2022 10:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59656 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 59656@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16696328711826 (code B ref -1); Mon, 28 Nov 2022 10:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Nov 2022 10:54:31 +0000 Received: from localhost ([127.0.0.1]:47855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozbmQ-0000TO-7d for submit@debbugs.gnu.org; Mon, 28 Nov 2022 05:54:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:47952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozaqz-0008Ot-Vd for submit@debbugs.gnu.org; Mon, 28 Nov 2022 04:55:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozaqy-0000zh-Qy for bug-sed@gnu.org; Mon, 28 Nov 2022 04:55:09 -0500 Received: from mxe-2-ac4.seznam.cz ([2a02:598:64:8a00::1000:ac4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozaqw-00019x-Nv for bug-sed@gnu.org; Mon, 28 Nov 2022 04:55:08 -0500 Received: from email.seznam.cz by smtpc-mxe-6999ff44c-s6q8m (smtpc-mxe-6999ff44c-s6q8m [2a02:598:64:8a00::1000:ac4]) id 18a1c23433fbf02e18f47239; Mon, 28 Nov 2022 10:54:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=szn20221014; t=1669629299; bh=ln0rIo1lNxXqUFB0RkesIJW+FFygmmkY2qLlipMgwac=; h=Received:From:To:Subject:Date:Message-Id:Mime-Version:X-Mailer: Content-Type; b=CYUVJNsJUknH0yrz3pUvKKpK3nc3WAfxkc7fq0QlAwYLz4pMPYfakNCKXCxMk635y AT5tD9kD4OwJX+QM/4XUWXOoBJk8DFi48Lwuj4NjjdoZI6+FzQG5rciMv/qbFU99nS DiJaBMRBDB1rbzlPVVJkdWfv0qiml1fO+8mTsSV9RRFwGV/qkxa8wKODlEnPpTpTDo oo6vFuUWyONcJjtUZ0ipJV2mCGGx/4CmYZyQeeyZeTfh/+GvWa3u42C+xVjGnGvnVt gZWdRYLRK2MraaDxRKYP4vP5WZMWBSFcbA6TCL1Bjq3mEMJhF9Pz2/nSyMQ0CNDXA3 yvF6fqAJ0RjMA== Received: from unknown ([2001:67c:1222:800:79b2:84fb:ed77:b1e3]) by email.seznam.cz (szn-ebox-5.0.133) with HTTP; Mon, 28 Nov 2022 10:54:54 +0100 (CET) From: "Tomas Kana " Date: Mon, 28 Nov 2022 10:54:54 +0100 (CET) Message-Id: <8eZ.L89n.JRYt8t2gNw.1ZX8Lk@seznam.cz> Mime-Version: 1.0 (szn-mime-2.1.23) X-Mailer: szn-ebox-5.0.133 Content-Type: multipart/alternative; boundary="=_7f95f68224de56a64752a9c0=1642f828-fb28-52b3-9232-bf48cf986d4e_=" Received-SPF: pass client-ip=2a02:598:64:8a00::1000:ac4; envelope-from=kana@seznam.cz; helo=mxe-2-ac4.seznam.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Mailman-Approved-At: Mon, 28 Nov 2022 05:54:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=_7f95f68224de56a64752a9c0=1642f828-fb28-52b3-9232-bf48cf986d4e_= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear GNU community, I would like to notify you about an error in the first example 7.20: Squeezing blank lines. The commented command # now, squeeze all '\n', this can be also done by: # s/^\(\n\)*/\1/
works fine if the hash tag is erased from the second l= ine,
but the next line in the sed script
s/\n*/\ /
that you have left uncommented on your web page adds an extra blank <= br>line after every line. This is not the desired behavior.
With best = wishes
Tomas Kana
--=_7f95f68224de56a64752a9c0=1642f828-fb28-52b3-9232-bf48cf986d4e_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Dear GNU community,
I would like to notify= you about an error in the first example
7.20: Squeezing bl= ank lines.
The commented command
# now, squeeze all '\n', this can be also done by:=0A=
# s/^\(\n\)*/\1/
works fine if the hash tag is erased from the second l= ine,
but the next line in the sed script
s/\n*/\=0A= /
that you have left uncommented on your web page adds an extra blank <= br>line after every line. This is not the desired behavior.
With best = wishes
Tomas Kana
--=_7f95f68224de56a64752a9c0=1642f828-fb28-52b3-9232-bf48cf986d4e_=--