From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B91911F660 for ; Sat, 10 Sep 2022 08:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1662797935; bh=tWU7q4uXc7SSnU+CXFFeuUHTuA++vseLgL16ji1JhIs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XK4kI7mYyuc8Si9Bf1X7TR300JcxALE7DJg4AzUUXo13fNSovS98BQBPUFdx3EpEb qtqei5/xfwNNKMqj5O2Fz9j6S6aoTVXu+Hs7RoaWGmsooGeKps1DQJBOEUUnVADYmp dFIxLnnzp1nrepCoiTzSoPpCqcHsQXpbZ28dIooU= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 23/38] view: html_footer: avoid escaping " in a few places Date: Sat, 10 Sep 2022 08:17:14 +0000 Message-Id: <20220910081729.2011934-24-e@80x24.org> In-Reply-To: <20220910081729.2011934-1-e@80x24.org> References: <20220910081729.2011934-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: qq() is a nice alternative to "" when there's embedded " characters in HTML entities. --- lib/PublicInbox/View.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 40b4bf36..2f99179e 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -819,23 +819,23 @@ EOF if (my $n = $ctx->{next_msg}) { $n = mid_href($n); - $next = "next"; + $next = qq(next); } my $par = $ctx->{parent_msg}; my $u = $par ? $upfx.mid_href($par).'/' : undef; if (my $p = $ctx->{prev_msg}) { $prev = mid_href($p); if ($p && $par && $p eq $par) { - $prev = "prev parent'; $parent = ''; } else { - $prev = "prev'; - $parent = " parent" if $u; + $parent = qq( parent) if $u; } } elsif ($u) { # unlikely - $parent = " parent"; + $parent = qq( parent); } $foot .= "$next $prev$parent "; } else { # unindexed inboxes w/o over