]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
html output: ms-flights-summary: Break out flight_hdr_raw
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:48:26 +0000 (11:48 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 22 Feb 2017 11:48:28 +0000 (11:48 +0000)
Will will want this in a moment.  For now, no functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ms-flights-summary

index 7981e44103f2a14cf6cc2e465224bf60394ac2fa..78f8675262e9e0930dd39d72ae7edbc409a0ba31 100755 (executable)
@@ -272,11 +272,15 @@ sub cols_hdr() {
     printf("</tr>\n");
 }
 
-sub flight_hdr($) {
-    my $text = encode_entities(shift);
+sub flight_hdr_raw($) {
+    my ($text) = @_;
     printf("    <tr><td colspan=%d><b>$text</b></td></tr>\n", scalar @cols);
 }
 
+sub flight_hdr($) {
+    flight_hdr_raw(encode_entities(shift));
+}
+
 sub cell($;$$$) {
     my ($text,$colourattr,$fontattr,$tag) = @_;
     $text //= '';