Skip Menu |
 

This queue is for tickets about the Text-MicroTemplate CPAN distribution.

Report information
The Basics
Id: 86049
Status: resolved
Priority: 0/
Queue: Text-MicroTemplate

People
Owner: Nobody in particular
Requestors: bokutin [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.19
Fixed in: (no value)



Subject: コメントのsyntax
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.13-20001-1370900858-427.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1370900858-20001-2"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 464
Download (untitled) / with headers
text/plain 464b
こんにちは! PODのTEMPLATE SYNTAXを試しているのですが・・・ http://search.cpan.org/~kazuho/Text-MicroTemplate-0.19/lib/Text/MicroTemplate.pm#TEMPLATE_SYNTAX ?# comment の例が上手く動かない気がしています。。。 http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Text-MicroTemplate-0.19.tar.gz からのdiffを添付いたしますので、検討していただければ幸いです。 宜しくお願いいたします。
Subject: comment.patch
MIME-Version: 1.0
Content-Type: application/octet-stream; name="comment.patch"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="comment.patch"
Content-Transfer-Encoding: base64
Content-Length: 925
Download comment.patch
text/x-diff 925b
diff --git lib/Text/MicroTemplate.pm lib/Text/MicroTemplate.pm index 7f1ab05..61bfafe 100644 --- lib/Text/MicroTemplate.pm +++ lib/Text/MicroTemplate.pm @@ -204,7 +204,7 @@ sub parse { } # Comment line, dummy token needed for line count - if ($line =~ /^$line_start$cmnt_mark\s+$/) { + if ($line =~ /^$line_start$cmnt_mark\s+(.*)$/) { push @{$self->{tree}}, []; $multiline_expression = 0; next; diff --git t/03-modes.t t/03-modes.t index ea71038..a8b72b1 100644 --- t/03-modes.t +++ t/03-modes.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 9; use Text::MicroTemplate qw(:all); # comment @@ -10,6 +10,12 @@ aaa bbb ?# ... +is render_mt(<<'...')->as_string, "aaa\nbbb\n"; +aaa +?# comment +bbb +?# +... is render_mt('aaa<?# a ?>bbb')->as_string, "aaabbb"; # expression and raw expression
From tokuhirom [...] gmail.com Mon Jun 10 19: 30:59 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-6.223 tagged_above=-99.9 required=10 tests=[AWL=-0.003, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-4.0.13-20001-1370900858-307.86049-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-86049 [...] rt.cpan.org> <rt-4.0.13-20001-1370900858-307.86049-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.220.1.9 with SMTP id 9mr7061506vcd.37.1370907040473; Mon, 10 Jun 2013 16:30:40 -0700 (PDT)
Message-ID: <CADTaU+Y8NFQtj-75ta9mJzAtkxrn27+jVAc+v1MSMEubXTTBhg [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.223
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E6A81240AC8 for <cpan-bug+Text-MicroTemplate [...] hipster.bestpractical.com>; Mon, 10 Jun 2013 19:30:58 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aiKhxzF-XEN8 for <cpan-bug+Text-MicroTemplate [...] hipster.bestpractical.com>; Mon, 10 Jun 2013 19:30:53 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id D47A4240AB7 for <bug-Text-MicroTemplate [...] rt.cpan.org>; Mon, 10 Jun 2013 19:30:52 -0400 (EDT)
Received: (qmail 24868 invoked by alias); 10 Jun 2013 23:30:51 -0000
Received: from mail-vc0-f172.google.com (HELO mail-vc0-f172.google.com) (209.85.220.172) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 10 Jun 2013 16:30:44 -0700
Received: by mail-vc0-f172.google.com with SMTP id ib11so4997500vcb.3 for <bug-Text-MicroTemplate [...] rt.cpan.org>; Mon, 10 Jun 2013 16:30:40 -0700 (PDT)
Received: by 10.220.31.2 with HTTP; Mon, 10 Jun 2013 16:30:40 -0700 (PDT)
Delivered-To: cpan-bug+Text-MicroTemplate [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #86049] コメントのsyntax
Return-Path: <tokuhirom [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=mVUp9Y1JXhuUv2ovxqo14nnrjYtJ9kfDFzCzWTxWcTw=; b=qYicwIOwAffmp8Vs7x6KnFFwvCq4OM7LC19iSj2ckC7iTlSGKf2KFFV4JQ8l0AiYJL +2kpeDYrr+YkTxOPPjBoRSF1q9661s/VdWQn3aTAo54I2l3l1xMpUky9YZj9i0r3ESoD +MKlKOBC+tXwbPxblv6RwLX+iclDoODlqjKVmwMZBJlcji86TJgG9hvomlo8fR8Q924A MOM8QUhORItirR51nrFTUDxs9et2pwQo1Ya7vEZ96zMxJSODJ7as2oTMKij1PDWQxmqG 39KKZbyvRpr2AQsyGN7GPdQl2DlOmy5N5z/fYUeEDC4dLMr94cRes9ZWnE80AvmghyPO EgCg==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Text-MicroTemplate [...] hipster.bestpractical.com
X-RT-Mail-Extension: text-microtemplate
Date: Tue, 11 Jun 2013 08:30:40 +0900
X-Spam-Level:
To: bug-Text-MicroTemplate [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Tokuhiro Matsuno <tokuhirom [...] gmail.com>
RT-Message-ID: <rt-4.0.13-20001-1370907059-1205.86049-0-0 [...] rt.cpan.org>
Content-Length: 1030
Could you send us pull-request by github? https://github.com/kazuho/p5-text-microtemplate -- tokuhirom 2013/6/11 Tomohiro Hosaka via RT <bug-Text-MicroTemplate@rt.cpan.org>: Show quoted text
> Mon Jun 10 17:47:38 2013: Request 86049 was acted upon. > Transaction: Ticket created by bokutin > Queue: Text-MicroTemplate > Subject: コメントのsyntax > Broken in: 0.19 > Severity: Unimportant > Owner: Nobody > Requestors: bokutin@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=86049 > > > > こんにちは! > > PODのTEMPLATE SYNTAXを試しているのですが・・・ > http://search.cpan.org/~kazuho/Text-MicroTemplate-0.19/lib/Text/MicroTemplate.pm#TEMPLATE_SYNTAX > > ?# comment > > の例が上手く動かない気がしています。。。 > > http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Text-MicroTemplate-0.19.tar.gz > からのdiffを添付いたしますので、検討していただければ幸いです。 > > 宜しくお願いいたします。
MIME-Version: 1.0
In-Reply-To: <rt-4.0.13-20001-1370907059-1205.86049-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-86049 [...] rt.cpan.org> <rt-4.0.13-20001-1370900858-307.86049-4-0 [...] rt.cpan.org> <CADTaU+Y8NFQtj-75ta9mJzAtkxrn27+jVAc+v1MSMEubXTTBhg [...] mail.gmail.com> <rt-4.0.13-20001-1370907059-1205.86049-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.13-15751-1370907467-1790.86049-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 190
Download (untitled) / with headers
text/plain 190b
ありがとうございます! たった今見付けて、投稿させていただきました! https://github.com/kazuho/p5-text-microtemplate/pull/7 宜しくお願い致します。


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.