diff mbox

[OSSTEST,2/4] html output: ms-flights-summary: Break out flight_hdr_raw

Message ID 1487764715-9499-2-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Feb. 22, 2017, 11:58 a.m. UTC
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 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

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("</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 //= '';