From 22d216c87e159a54dae87cd535b8f8d2c3889a79 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 1 Jun 2013 15:41:34 +0200 Subject: Tighten display of additive hours for same weekdays --- bin/rdf2hours | 14 +++++++++----- 1 file 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); -- cgit v1.2.3