From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2DE071FA2D for ; Sat, 28 Jan 2023 11:03:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1674903804; bh=S4nknlh6uV5z8+p6gkT9UtIOJ+HJo23gRBZHRoyLGtk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=1SgaG0mx0FbLRrSX9kjg+Fmd7Y+8SpZkZwe1HDbFODgkrcanLTDI5eksheuBOTGlM 3ErjCXy+IZIhzo+4BVdHscYa/U1///T/P+VrjvVE9TlCKwrrmjA9wF/vGulC2Somx6 4gLDMI5oJG1HFZLGdwz1GcKbdfBGmHzZDvtjTF3Y= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/7] repo_atom: translate: account for multiple args Date: Sat, 28 Jan 2023 11:02:53 +0000 Message-Id: <20230128110255.2950084-6-e@80x24.org> In-Reply-To: <20230128110255.2950084-1-e@80x24.org> References: <20230128110255.2950084-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: ->translate should handle unlimited args, even if we don't currently use it that way... --- lib/PublicInbox/RepoAtom.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/RepoAtom.pm b/lib/PublicInbox/RepoAtom.pm index 4a013147..44883ab4 100644 --- a/lib/PublicInbox/RepoAtom.pm +++ b/lib/PublicInbox/RepoAtom.pm @@ -46,7 +46,7 @@ sub translate { my $rec = $_[0] // return $self->zflush; # getline my @out; my $lbuf = delete($self->{lbuf}) // shift; - $lbuf .= shift if @_; + $lbuf .= shift while @_; my $is_tag = $self->{-is_tag}; my ($H, $ct, $an, $ae, $at, $s, $bdy); while ($lbuf =~ s/\A([^\0]+)\0\n//s) {