Browse Source

add empty line separators

main
ghost 9 months ago
parent
commit
aa14404c2a
  1. 8
      src/server.php

8
src/server.php

@ -237,7 +237,7 @@ $server->setHandler( @@ -237,7 +237,7 @@ $server->setHandler(
else
{
$result[] = '';
$result[] = null;
foreach ($config->geminiapp->links as $link)
{
@ -260,6 +260,7 @@ $server->setHandler( @@ -260,6 +260,7 @@ $server->setHandler(
);
// Append h2
$result[] = null;
$result[] = sprintf(
'## %s',
$search ? $config->geminiapp->string->results : $config->geminiapp->string->latest
@ -271,6 +272,7 @@ $server->setHandler( @@ -271,6 +272,7 @@ $server->setHandler(
foreach ($records as $record)
{
// Key
$result[] = null;
$result[] = sprintf(
'### %s',
trim(
@ -300,7 +302,6 @@ $server->setHandler( @@ -300,7 +302,6 @@ $server->setHandler(
// Link
$result[] = null;
$result[] = sprintf(
'=> /%s %s in %d',
$record['transaction'],
@ -313,10 +314,12 @@ $server->setHandler( @@ -313,10 +314,12 @@ $server->setHandler(
}
// Append navigation
$result[] = null;
$result[] = sprintf(
'## %s',
$config->geminiapp->string->navigation
);
$result[] = null;
// Pagination
$older = [];
@ -382,6 +385,7 @@ $server->setHandler( @@ -382,6 +385,7 @@ $server->setHandler(
else
{
$result[] = null;
$result[] = $config->geminiapp->string->nothing;
}

Loading…
Cancel
Save