krz/hn

A brutalist web client for Hacker News.

clone: git clone https://gitbay.org/krz/hn.git

aa0739f782591acc54515e2b855c19a285f9b853

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-06-01T15:05:48Z

fix: text spacing
 index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php
index 37ac07a..a45b5ae 100644
--- a/index.php
+++ b/index.php
@@ -143,7 +143,7 @@ function get_stories($api_url, $inline_title) {
 		$html .= date('Y-m-d h:m:s', $sub_response['time'])  . '</time> by <a';
 		$html .= 'href="/user/'. $sub_response['by'] . '">';
 		$html .= $sub_response['by'] . ' | ' . $sub_response['score'];
-		$html .= 'points</p></div>';
+		$html .= ' points</p></div>';
 		$html_output .= $html;
 	}
 
@@ -187,7 +187,7 @@ function get_user(string $api_url, string $inline_title) {
 			$html .= date('Y-m-d h:m:s', $sub_response['time'])  . '</time> by <a';
 			$html .= 'href="/user/'. $sub_response['by'] . '">';
 			$html .= $sub_response['by'] . ' | ' . $sub_response['score'];
-			$html .= 'points</p></div>';
+			$html .= ' points</p></div>';
 			$html_output .= $html;
 		}
 	} else {