Browse Source

add missed line separators

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

17
src/server.php

@ -212,6 +212,7 @@ $server->setHandler(
} }
} }
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'# %s', '# %s',
implode( implode(
@ -221,6 +222,7 @@ $server->setHandler(
); );
// Menu // Menu
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'=> /search %s', '=> /search %s',
$config->geminiapp->string->search $config->geminiapp->string->search
@ -423,17 +425,20 @@ $server->setHandler(
if ('raw' == $request->getQuery()) if ('raw' == $request->getQuery())
{ {
// Transaction ID // Transaction ID
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'# %s', '# %s',
$record['transaction'] $record['transaction']
); );
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'## %s', '## %s',
$config->geminiapp->string->data $config->geminiapp->string->data
); );
// Key // Key
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'### %s', '### %s',
$config->geminiapp->string->key $config->geminiapp->string->key
@ -460,6 +465,7 @@ $server->setHandler(
$result[] = '```'; $result[] = '```';
// Value // Value
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'### %s', '### %s',
$config->geminiapp->string->value $config->geminiapp->string->value
@ -486,28 +492,33 @@ $server->setHandler(
$result[] = '```'; $result[] = '```';
// Meta // Meta
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'## %s', '## %s',
$config->geminiapp->string->meta $config->geminiapp->string->meta
); );
// Time // Time
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'### %s', '### %s',
$config->geminiapp->string->time $config->geminiapp->string->time
); );
$result[] = null;
$result[] = date( $result[] = date(
'Y-m-d', 'Y-m-d',
$record['time'] $record['time']
); );
// Block // Block
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'### %s', '### %s',
$config->geminiapp->string->block $config->geminiapp->string->block
); );
$result[] = null;
$result[] = $record['block']; $result[] = $record['block'];
} }
@ -515,6 +526,7 @@ $server->setHandler(
else else
{ {
// Key // Key
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'# %s', '# %s',
trim( trim(
@ -527,6 +539,7 @@ $server->setHandler(
); );
// Value // Value
$result[] = null;
$result[] = trim( $result[] = trim(
preg_replace( preg_replace(
[ [
@ -543,6 +556,7 @@ $server->setHandler(
// Time // Time
$result[] = null; $result[] = null;
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'%s in %d', '%s in %d',
@ -555,6 +569,7 @@ $server->setHandler(
} }
// Footer // Footer
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'## %s', '## %s',
$config->geminiapp->string->navigation $config->geminiapp->string->navigation
@ -562,6 +577,7 @@ $server->setHandler(
if ('raw' == $request->getQuery()) if ('raw' == $request->getQuery())
{ {
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'=> /%s %s', '=> /%s %s',
$record['transaction'], $record['transaction'],
@ -571,6 +587,7 @@ $server->setHandler(
else else
{ {
$result[] = null;
$result[] = sprintf( $result[] = sprintf(
'=> /%s?raw %s', '=> /%s?raw %s',
$record['transaction'], $record['transaction'],

Loading…
Cancel
Save