summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-06-01 15:41:34 +0200
committerJonas <dr@jones.dk>2013-06-01 15:41:34 +0200
commit22d216c87e159a54dae87cd535b8f8d2c3889a79 (patch)
tree9c75a99183055cefc78c3fa4f0ce16db7d36e551 /bin
parent0deb7d99990c26d02cfe093a7a7fe009e88ebd96 (diff)
Tighten display of additive hours for same weekdays
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rdf2hours14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/rdf2hours b/bin/rdf2hours
index 766ab52..f37ac1c 100755
--- a/bin/rdf2hours
+++ b/bin/rdf2hours
@@ -223,14 +223,18 @@ for my $category ( @category ) {
$data{$category}{$name}{specbundle}{$specbundle}{spec}{$weekdays}{speccomment},
);
push @specbundle, br if (@specbundle);
- # TODO: Tighten display of additive hours for same weekdays
+ my @hours;
for my $hours ( sort keys %{ $data{$category}{$name}{specbundle}{$specbundle}{spec}{$weekdays}{hours} } ) {
- push @specbundle, "\n", span(
- span($specdescription, ":"),
- "\t",
- span($data{$category}{$name}{specbundle}{$specbundle}{spec}{$weekdays}{hours}{$hours}),
+ # TODO: make simplified html (preferred for Scribus) optional
+# push @hours, br, "\n" if (@hours);
+ push @hours, br if (@hours);
+ push @hours, "\t", span(
+ $data{$category}{$name}{specbundle}{$specbundle}{spec}{$weekdays}{hours}{$hours}
);
}
+ push @specbundle, "\n", span(
+ span($specdescription, ":"), @hours,
+ );
}
# TODO: make simplified html (preferred for Scribus) optional
# push @content, p("\n", @specbundle) if (@specbundle);