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
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
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.