# Backend to convert something into ASCII text
# Send any comments to Eric Bischoff <eric@caldera.de>
# This program is under GPL license. See LICENSE file for details.

# Convert from HTML to ASCII
$SGML_JADE -i html -t sgml -V nochunks -d $SGML_STYLESHEET $SGML_FILE \
| lynx -force_html -nolist -dump -stdin > ${SGML_FILE_NAME}.txt

if [ $? -ne 0 ]
then
  exit 2
fi

exit 0
