From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12707 invoked from network); 26 Nov 2004 23:50:29 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 26 Nov 2004 23:50:29 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CXprB-000718-NY for arch-gentoo-dev@lists.gentoo.org; Fri, 26 Nov 2004 23:50:29 +0000 Received: (qmail 14952 invoked by uid 89); 26 Nov 2004 23:50:29 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 5636 invoked from network); 26 Nov 2004 23:50:28 +0000 Date: Fri, 26 Nov 2004 23:55:14 +0000 (GMT) From: Ed Grimm To: gentoo-dev@lists.gentoo.org In-Reply-To: <20041126180351.GA11093@lion.gg3.net> Message-ID: References: <3908185A3D2C144E9FAD070D2727FFD81716A9@PERIMAIL.perimed.priv> <921ad39e04112306381595bc8a@mail.gmail.com> <1049C878-3D68-11D9-9250-000A958238BC@gentoo.org> <1101226835.9000.39.camel@cgianelloni.nuvox.net> <46059ce104112315265d557064@mail.gmail.com> <1101327015.9848.5.camel@io> <20041125094444.GA13530@lion.gg3.net> <20041126022509.GA26935@ols-dell.iic.hokudai.ac.jp> <20041126101734.59070a9a@snowdrop.home> <20041126180351.GA11093@lion.gg3.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [gentoo-dev] Gentoo beeping at me! X-Archives-Salt: 3c9dcf27-2a3c-43e3-85db-fd91ad9a1ba4 X-Archives-Hash: 63237ff863c6c1a1f5cd2f4572c11d33 On Sat, 27 Nov 2004, Georgi Georgiev wrote: > maillog: 26/11/2004-10:17:34(+0000): Ciaran McCreesh types >> On Fri, 26 Nov 2004 11:25:10 +0900 Georgi Georgiev >> wrote: >>| I have nothing against in-line docs in general. I simply had trouble >>| imagining it in the bash case. >>| >>| What about using perldoc itself? Simply prepend every doc line with a >>| '#', then run >>| >>| awk '/^#/ { sub("#",""); print } >> >> In bash? How would that work? > > I imagined > > #=item blah blah > # more POD > # and more > # and more > #=cut Note that Pod::Parser has a method (preprocess_line) which one could utilize to do the strip without requiring an awk pre-processing step. That being said, as the pod reformatting packages are written as Pod::Parser subclasses, I'm not certain if it could be utilized gracefully without limiting the potential output formats. It may be possible to make a generic class which does the magic, and a magical subclass of that class which inherits from both it and a particular formatting subclass, such that preprocess_line comes from the generic class, and everything else comes from the formatting subclass. Ed -- gentoo-dev@gentoo.org mailing list