diff --git a/src/filters/rcldoc b/src/filters/rcldoc index c74a1dc4..14c33f1b 100755 --- a/src/filters/rcldoc +++ b/src/filters/rcldoc @@ -28,8 +28,6 @@ decoder="antiword -t -i 1 -m UTF-8" #decoder="wvWare -1 -c UTF-8" - - #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -108,8 +106,11 @@ awk 'BEGIN'\ print "" print "\n
\n"
cont = ""
+ gotdata = 0
}
{
+ if (!($0 ~ /^[ ]*$/))
+ gotdata = 1
$0 = cont $0
cont = ""
@@ -133,8 +134,17 @@ awk 'BEGIN'\
print $0 "
"
}
END {
+ if (gotdata == 0)
+ exit(1)
print "