/* retawq/renderer.c - plaintext/HTML renderer
This file is part of retawq (), a network
client created by Arne Thomassen; retawq is basically released under certain
versions of the GNU General Public License and WITHOUT ANY WARRANTY.
Read the file COPYING for license details, README for program information.
Copyright (C) 2001-2005 Arne Thomassen
*/
/* This code is roughly part of the user interface; it's taken out for the only
reason that source files are smaller this way. Look how it's #include'd
from main.c; maybe dirty, but simple and functional...
*/
/* Basic operation of this renderer: the caller sets up some data (in a
tRendererData structure); the renderer scans/parses the given content and
builds text lines from that; each single line is fed to the caller's "line
callback" function which "consumes" the lines and tells the renderer
whether further lines should be generated. This is, so far, the most
correct/clean/fast rendering concept I was able to render. :-) */
#define renderer_interface static /* (currently) */
#define HTML_FORMS_SLOPPY 1
/* Grumble... Some web page authors write rubbish like