aboutsummaryrefslogtreecommitdiffstats
path: root/gen_ladder.pl
diff options
context:
space:
mode:
Diffstat (limited to 'gen_ladder.pl')
-rwxr-xr-xgen_ladder.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/gen_ladder.pl b/gen_ladder.pl
index 924e254..7408c98 100755
--- a/gen_ladder.pl
+++ b/gen_ladder.pl
@@ -41,7 +41,12 @@ sub parse_cfg_line($)
($cfg_parse_section) = $line =~ /^\[(.*)\]/;
return;
}
- if ($cfg_parse_section eq 'entities') {
+ if ($cfg_parse_section eq 'global') {
+ if ($line =~ /^title/) {
+ my ($title) = $line =~ /^title\s+"(.*)"/;
+ OsmoLadder::set_title($title);
+ }
+ } elsif ($cfg_parse_section eq 'entities') {
if (my ($entity, $label) = $line =~ /^(\S+)\s+"(.+)"/) {
OsmoLadder::new_node($entity, $label);
} else {