mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
examples: Split up description text by line breaks.
This commit is contained in:
parent
b24bfc2c98
commit
afabccd4d0
2 changed files with 4 additions and 4 deletions
|
@ -106,12 +106,11 @@ sub handle_example_dir {
|
||||||
|
|
||||||
my $description = '';
|
my $description = '';
|
||||||
if (open(my $readmetxth, '<', "$examples_dir/$category/$example/README.txt")) {
|
if (open(my $readmetxth, '<', "$examples_dir/$category/$example/README.txt")) {
|
||||||
my $spc = '';
|
|
||||||
while (<$readmetxth>) {
|
while (<$readmetxth>) {
|
||||||
chomp;
|
chomp;
|
||||||
s/\"/\\"/g;
|
s/\A\s+//;
|
||||||
$description .= "$spc$_";
|
s/\s+\Z//;
|
||||||
$spc = ' ';
|
$description .= "$_<br/>";
|
||||||
}
|
}
|
||||||
close($readmetxth);
|
close($readmetxth);
|
||||||
}
|
}
|
||||||
|
|
1
examples/game/01-snake/README.txt
Normal file
1
examples/game/01-snake/README.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
A complete game of Snake, written in SDL.
|
Loading…
Add table
Add a link
Reference in a new issue