mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
examples: Split up description text by line breaks.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user