From 13eb358d93bece98c061380d672a089638739e4b Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 1 Aug 2024 20:47:31 +0300 Subject: [PATCH] implement links date --- src/Model/Gtk/Pango/Markup/Gemtext.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Model/Gtk/Pango/Markup/Gemtext.php b/src/Model/Gtk/Pango/Markup/Gemtext.php index 93988a72..a85f58d8 100644 --- a/src/Model/Gtk/Pango/Markup/Gemtext.php +++ b/src/Model/Gtk/Pango/Markup/Gemtext.php @@ -125,11 +125,15 @@ class Gemtext extends \Yggverse\Yoda\Abstract\Model\Gtk\Pango\Markup $prefix ), $entity->getAddress(), - sprintf( - '%s %s', - $prefix, - $entity->getAlt() ? $entity->getAlt() - : $entity->getAddress() // @TODO date + trim( + implode( + ' ', + [ + $prefix, + $entity->getDate(), + $entity->getAlt() ? $entity->getAlt() : $entity->getAddress() + ] + ) ) ); }