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
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
*** 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;