examples: Split up description text by line breaks.

This commit is contained in:
Ryan C. Gordon 2024-07-30 15:37:46 -04:00
parent b24bfc2c98
commit afabccd4d0
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
2 changed files with 4 additions and 4 deletions

View File

@ -106,12 +106,11 @@ sub handle_example_dir {
my $description = '';
if (open(my $readmetxth, '<', "$examples_dir/$category/$example/README.txt")) {
my $spc = '';
while (<$readmetxth>) {
chomp;
s/\"/\\"/g;
$description .= "$spc$_";
$spc = ' ';
s/\A\s+//;
s/\s+\Z//;
$description .= "$_<br/>";
}
close($readmetxth);
}

View File

@ -0,0 +1 @@
A complete game of Snake, written in SDL.