From 5cd66f90b9a58285b9c6f1ce462827c9ff40b082 Mon Sep 17 00:00:00 2001 From: david <> Date: Fri, 25 Jan 2002 03:31:31 +0000 Subject: [PATCH] runon protection, section titles for xref tags --- LDP/txt2db/txt2db.pl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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;