diff options
Diffstat (limited to 'WWW/Library/Implementation/HTMLGen.c')
-rw-r--r-- | WWW/Library/Implementation/HTMLGen.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/WWW/Library/Implementation/HTMLGen.c b/WWW/Library/Implementation/HTMLGen.c index ae94493a..3516d201 100644 --- a/WWW/Library/Implementation/HTMLGen.c +++ b/WWW/Library/Implementation/HTMLGen.c @@ -33,10 +33,9 @@ #include <LYStyle.h> #endif +#include <LYGlobalDefs.h> #include <LYLeaks.h> -extern BOOLEAN LYPreparsedSource; /* Show source as preparsed? */ - #define PUTC(c) (*me->targetClass.put_character)(me->target, c) /* #define PUTS(s) (*me->targetClass.put_string)(me->target, s) */ #define PUTB(s,l) (*me->targetClass.put_block)(me->target, s, l) @@ -486,17 +485,12 @@ PRIVATE int HTMLGen_start_element ARGS6( * Same logic as in HTML_start_element, copied from there. - kw */ -/* end really empty tags straight away */ - + /* end really empty tags straight away */ if (LYPreparsedSource && ReallyEmptyTagNum(element_number)) { CTRACE((tfp, "STYLE:begin_element:ending EMPTY element style\n")); do_cstyle_flush(me); -#if !defined(USE_HASH) - HText_characterStyle(me->text, element_number+STARTAT, STACK_OFF); -#else HText_characterStyle(me->text, hcode, STACK_OFF); -#endif /* USE_HASH */ TrimColorClass(HTML_dtd.tags[element_number].name, Style_className, &hcode); } @@ -560,15 +554,10 @@ PRIVATE int HTMLGen_end_element ARGS3( TrimColorClass(HTML_dtd.tags[element_number].name, Style_className, &hcode); - if (LYPreparsedSource && !ReallyEmptyTagNum(element_number)) - { + if (LYPreparsedSource && !ReallyEmptyTagNum(element_number)) { CTRACE((tfp, "STYLE:end_element: ending non-EMPTY style\n")); do_cstyle_flush(me); -#if !defined(USE_HASH) - HText_characterStyle(me->text, element_number+STARTAT, STACK_OFF); -#else HText_characterStyle(me->text, hcode, STACK_OFF); -#endif /* USE_HASH */ } #endif /* USE_COLOR_STYLE */ return HT_OK; @@ -649,8 +638,6 @@ PRIVATE CONST HTStructuredClass HTMLGeneration = /* As opposed to print etc */ ** ------------------------- */ extern int LYcols; /* LYCurses.h, set in LYMain.c */ -extern BOOL dump_output_immediately; /* TRUE if no interactive user */ -extern int dump_output_width; /* -width instead of 80 */ PUBLIC HTStructured * HTMLGenerator ARGS1( HTStream *, output) |