From: Ian Jackson Date: Wed, 22 Feb 2017 11:48:26 +0000 (+0000) Subject: html output: ms-flights-summary: Break out flight_hdr_raw X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5c2931abc6e861c7783e0628128eb9bb38f8c05a;p=people%2Fliuw%2Fosstest.git html output: ms-flights-summary: Break out flight_hdr_raw Will will want this in a moment. For now, no functional change. Signed-off-by: Ian Jackson --- diff --git a/ms-flights-summary b/ms-flights-summary index 7981e44..78f8675 100755 --- a/ms-flights-summary +++ b/ms-flights-summary @@ -272,11 +272,15 @@ sub cols_hdr() { printf("\n"); } -sub flight_hdr($) { - my $text = encode_entities(shift); +sub flight_hdr_raw($) { + my ($text) = @_; printf(" $text\n", scalar @cols); } +sub flight_hdr($) { + flight_hdr_raw(encode_entities(shift)); +} + sub cell($;$$$) { my ($text,$colourattr,$fontattr,$tag) = @_; $text //= '';