Browse Source

add empty line separators

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

8
src/server.php

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

Loading…
Cancel
Save