| # | Line 451 | Line 451 | sub make_xml() { | |
|---|---|---|
| 451 | return $xmltemp; | |
| 452 | } | |
| 453 | } | |
| 454 | + | # dealing with a null value |
| 455 | + | elsif($curline =~ /^$curlevel([^\.\s]+)$/) { |
| 456 | + | # simply adding a space makes the above elsif deal with it :) |
| 457 | + | # just level with an empty tag in the XML |
| 458 | + | $curline .= " "; |
| 459 | + | } |
| 460 | + | # failing all that, skip the line |
| 461 | + | else { |
| 462 | + | $curline = ""; |
| 463 | + | } |
| 464 | } | |
| 465 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |