Skip Menu |
 

This queue is for tickets about the Bryar CPAN distribution.

Report information
The Basics
Id: 94748
Status: new
Priority: 0/
Queue: Bryar

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

Bug Information
Severity: Important
Broken in: 4.0
Fixed in: (no value)



Subject: bryar-newblog writes erroneous tt data
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.18-20474-1397549681-73.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1397549681-20474-4"
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: 193
Download (untitled) / with headers
text/plain 193b
bryar-newblog writes "blogmacros.tt2" which is screwed up with regard to TT2 markup. The file starts with a MACRO, but the corresponding [% only appears with the second macro. Patch attached.
Subject: bryar-newblog.patch
MIME-Version: 1.0
Content-Type: text/x-patch; name="bryar-newblog.patch"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="bryar-newblog.patch"
Content-Transfer-Encoding: binary
Content-Length: 932
Download bryar-newblog.patch
text/x-diff 932b
*** bryar-newblog~ 2014-04-15 09:52:16.917056484 +0200 --- bryar-newblog 2014-04-15 10:10:04.627196771 +0200 *************** *** 40,45 **** --- 40,46 ---- EOC write_file("blogmacros.tt2", <<'EOC'); + [% # Accepts a DateTime object and returns a date string suitable for ATOM feeds # (i.e. in the format specified by ISO 8601). *************** *** 54,60 **** # headers (i.e. in the format specified by RFC 822). MACRO datetime822(time) GET time.strftime('%a, %d %b %Y %H:%M:%S %z'); ! [% MACRO day(entry_time) BLOCK; entry_time.day _ ", " _ entry_time.mday _ " " _ entry_time.month _ " " _ entry_time.year; END; --- 55,61 ---- # headers (i.e. in the format specified by RFC 822). MACRO datetime822(time) GET time.strftime('%a, %d %b %Y %H:%M:%S %z'); ! MACRO day(entry_time) BLOCK; entry_time.day _ ", " _ entry_time.mday _ " " _ entry_time.month _ " " _ entry_time.year; END;


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.