[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/4] 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 <Ian.Jackson@xxxxxxxxxxxxx>
---
 ms-flights-summary | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.