fixed formatting

This commit is contained in:
sose 2021-04-02 12:21:52 +00:00
parent 8fae65292a
commit bd76b325a9
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ if ( getenv("PATH_INFO") !== null ) {
$feed->read();
echo "20 text/gemini\n";
echo "```\n";
echo " _ _________ _______ ____ __ ______ \n";
echo " / | / / ____/ | / / ___/ / __ \/ / / / __ \ \n";
echo " / |/ / __/ | | /| / /\__ \ / /_/ / /_/ / /_/ / \n";
@ -28,6 +29,7 @@ echo "/_/ |_/_____/ |__/|__//____(_)_/ /_/ /_/_/ \n";
echo "====================================================\n";
echo " \"Yeah it's news\" \n";
echo "====================================================\n";
echo "```\n";
foreach ($topics as $topic) {
echo "=> " . getenv("SCRIPT_NAME") . "/headlines/section/topic/" . $topic . " " . $topic . "\n";
}
@ -35,7 +37,7 @@ while ($feed->read()) {
if ($feed->name === "title" && $feed_title === "") {
$feed_title = $feed->readInnerXml();
$feed_title = str_replace(" - Google News", "", $feed_title);
echo "\n#" . $feed_title . "\n";
echo "\n# " . $feed_title . "\n";
}
if ( $feed->name === "entry") {