--- projects/cms/source/host/ihost-perl/ihost.pl 2001/12/18 06:07:00 1.45 +++ projects/cms/source/host/ihost-perl/ihost.pl 2002/03/11 13:34:24 1.46 @@ -8,7 +8,7 @@ # a typical Unix/Linux box. # # $Author: tdb $ -# $Id: ihost.pl,v 1.45 2001/12/18 06:07:00 tdb Exp $ +# $Id: ihost.pl,v 1.46 2002/03/11 13:34:24 tdb Exp $ #------------------------------------------------------------ $| = 1; @@ -451,5 +451,15 @@ sub make_xml() { return $xmltemp; } } + # dealing with a null value + elsif($curline =~ /^$curlevel([^\.\s]+)$/) { + # simply adding a space makes the above elsif deal with it :) + # just level with an empty tag in the XML + $curline .= " "; + } + # failing all that, skip the line + else { + $curline = ""; + } } }