mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 09:18:27 +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 = '';
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue