From 56509ab16c8d2225182eb0400e5c6a4900870391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 17 Sep 2021 22:34:52 +0200 Subject: Fix mktpl bug --- t/post.t | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 't/post.t') diff --git a/t/post.t b/t/post.t index 56d3c37..83529d7 100644 --- a/t/post.t +++ b/t/post.t @@ -1,7 +1,13 @@

Post <% printf("%d", id); %>: <%= post->subject %>

-

From: <%= user->full %> -<id); %>"><%= user->name %>> -
Date: <% PFREE(date(post->created)); %> +

From: <%= user->full? user->full: "" %> <% +if(user->full) printf("<"); +%>id); %>"><%= user->name %><% +if(user->full) printf(">"); %> +
Date: <% printdate(post->created); %> +<% if(post->edited){ + printf("
Edited: "); + printdate(post->edited); +} %>

 <%= post->text %>
 
\ No newline at end of file -- cgit v1.2.3