[Scummvm-git-logs] scummvm master -> 7c732f971e74eb100e02b428ceb6a44abfa32290

Mataniko mataniko at gmail.com
Sat Oct 3 13:09:21 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7c732f971e CREDITS: Simplify YAML credits format


Commit: 7c732f971e74eb100e02b428ceb6a44abfa32290
    https://github.com/scummvm/scummvm/commit/7c732f971e74eb100e02b428ceb6a44abfa32290
Author: Mataniko (mataniko at gmail.com)
Date: 2020-10-03T09:09:10-04:00

Commit Message:
CREDITS: Simplify YAML credits format

Changed paths:
    devtools/credits.pl


diff --git a/devtools/credits.pl b/devtools/credits.pl
index c9725a9c83..77349274ec 100755
--- a/devtools/credits.pl
+++ b/devtools/credits.pl
@@ -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;




More information about the Scummvm-git-logs mailing list