diff --git a/LDP/txt2db/txt2db.pl b/LDP/txt2db/txt2db.pl index c85978ae..b56cccf5 100755 --- a/LDP/txt2db/txt2db.pl +++ b/LDP/txt2db/txt2db.pl @@ -238,6 +238,13 @@ sub proc_txt { } } + # runon protection + # + if ($linenumber >= ($noparaline + 100)) { + $buf .= "ERROR: runon block starting on line $noparaline\n"; + last; + } + # recover original line -- no whitespace modifiers # $line = $originalline; @@ -252,7 +259,7 @@ sub proc_txt { if ($id eq '') { $line = "$title\n"; } else { - $line = "$title\n"; + $line = "$title\n"; } $level3 = 1; @@ -264,7 +271,7 @@ sub proc_txt { if ($id eq '') { $line = "$title\n"; } else { - $line = "$title\n"; + $line = "$title\n"; } $level2 = 1; @@ -276,7 +283,7 @@ sub proc_txt { if ($id eq '') { $line = "$title\n"; } else { - $line = "$title\n"; + $line = "$title\n"; } $level1 = 1;