[lxc-devel] [linuxcontainers.org/master] Wrapped news date onto its own line

anthonydillon on Github lxc-bot at linuxcontainers.org
Wed Jan 17 06:57:04 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 530 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180117/ec8e4a84/attachment.bin>
-------------- next part --------------
From cb35634e28e995db4440f6b61fa24e5fd33a8676 Mon Sep 17 00:00:00 2001
From: Anthony Dillon <me at anthonydillon.com>
Date: Wed, 17 Jan 2018 08:55:30 +0200
Subject: [PATCH] Wrapped news date onto its own line

---
 generate | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generate b/generate
index f416253..4e58d09 100755
--- a/generate
+++ b/generate
@@ -380,9 +380,9 @@ def gen_page(entry, override, prefix, **variables):
             if "origin" in article:
                 title = "<a href=\"%s\">%s</a>" % (article["origin"], title)
 
-            content += "\n\n\n## %s <span class=\"text-muted\">%s</span>\n" % \
+            content += "\n\n\n## %s \n<span class=\"text-muted\">%s</span>\n" % \
                 (title, date.strftime("%%-d%s of %%B %%Y" % suffix))
-
+            
             content += article["content"]
 
         with open("/tmp/test.md", "w+") as fd:


More information about the lxc-devel mailing list