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 C4CF01F5CB; Sun, 29 Sep 2024 00:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1727569578; bh=zyV1EnjZyPVnS9LxpDKTaMUWMZ1kLY/nV/iPfMe/7jk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0eRcumzng+F8hZhZiM76hK2b8vmXasfBpK+wuPPFdCFlVB08msfKyqa8RXp3uDgpb 9PF5BAe+42VKI/Qon3HypGYFkJl5E/dSKi7UoeDTPWq2oJSZozzGgAbFtsIIkGPna2 BEHobuNPFPZbGsikRUAvLderm+P8LwiVb0M7PBTI= Date: Sun, 29 Sep 2024 00:22:38 +0000 From: Eric Wong To: meta@public-inbox.org Cc: "Robin H. Johnson" , =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: [PATCH v2] www: allow specifying CSS @import or tags Message-ID: <20240929002238.M917903@dcvr> References: <20240926005506.3703216-1-e@80x24.org> <20240926005506.3703216-5-e@80x24.org> <20240926183402Z.161922298-stepnem@smrk.net> <20240928183935.M960376@dcvr> <20240928192913Z.2177483813-stepnem@smrk.net> <20240928204217.M58159@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240928204217.M58159@dcvr> List-Id: Eric Wong wrote: > I'll squash this in before pushing: And this, totally forgot to test the final patch :x diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 60c437a5..987d644e 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -632,7 +632,7 @@ sub stylesheets_prepare ($$) { } elsif (open(my $fh, '<', $fn)) { ($local, $ctime) = _read_css $fh, $mini, $fn; if ($local =~ /\@import\b/) { - $import = $attr->{-do_import} = 1 + $import = $attr->{-do_import} = 1; push @css_dir, $dir if !$css_dir{$dir}++ } $css_map->{$key} = [ $local, $ctime ];