mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
CREDITS: Simplify YAML credits format
This commit is contained in:
parent
a8a4c25361
commit
7c732f971e
@ -222,7 +222,6 @@ sub begin_credits {
|
||||
print "static const char *credits[] = {\n";
|
||||
} elsif ($mode eq "YAML") {
|
||||
print "# This file was generated by credits.pl. Do not edit by hand!\n";
|
||||
print "credits:\n";
|
||||
} elsif ($mode eq "STRONGHELP") {
|
||||
print "ScummVM - AUTHORS\n";
|
||||
print "# This file was generated by credits.pl. Do not edit by hand!\n";
|
||||
@ -286,8 +285,8 @@ sub begin_section {
|
||||
print '"C1""'.$title.'",' . "\n";
|
||||
}
|
||||
} elsif ($mode eq "YAML") {
|
||||
my $key = "section:\n";
|
||||
$indent = " " . (" " x $section_level);
|
||||
my $key = "";
|
||||
$indent = (" " x ($section_level));
|
||||
if ($section_level eq 1) {
|
||||
$key = "subsection:\n";
|
||||
}
|
||||
@ -341,7 +340,7 @@ sub begin_persons {
|
||||
my $level = shift;
|
||||
|
||||
if ($mode eq "YAML") {
|
||||
$group_indent = $level eq 1 ? " " : " " . (" " x $section_level);
|
||||
$group_indent = $level eq 1 ? " " : (" " x $section_level);
|
||||
if ($group_started == 0) {
|
||||
print $group_indent . "group:\n";
|
||||
$group_started = 1;
|
||||
@ -460,7 +459,7 @@ sub add_paragraph {
|
||||
print $line_start . $text . $line_end . "\n";
|
||||
print $line_start . $line_end . "\n";
|
||||
} elsif ($mode eq "YAML") {
|
||||
$indent = " " . (" " x $section_level);
|
||||
$indent = (" " x $section_level);
|
||||
if ($paragraph_started eq 0) {
|
||||
print $indent . "paragraph:\n";
|
||||
$paragraph_started = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user