1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-03 03:56:32 -04:00

Use put_chrs instead of html_context->put_chars_f in element handlers

In html_subscript, html_subscript_close, html_superscript, html_quote, and
html_quote_close, use put_chrs instead of html_context->put_chars_f.
Element handlers should use put_chrs so that it can correctly handle
whitespace and stuff.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-02 05:51:24 +00:00 committed by Miciah Dashiel Butler Masters
parent f271a06487
commit 77f5585125

View File

@ -80,21 +80,21 @@ void
html_subscript(struct html_context *html_context, unsigned char *a,
unsigned char *xxx3, unsigned char *xxx4, unsigned char **xxx5)
{
html_context->put_chars_f(html_context, "[", 1);
put_chrs(html_context, "[", 1);
}
void
html_subscript_close(struct html_context *html_context, unsigned char *a,
unsigned char *xxx3, unsigned char *xxx4, unsigned char **xxx5)
{
html_context->put_chars_f(html_context, "]", 1);
put_chrs(html_context, "]", 1);
}
void
html_superscript(struct html_context *html_context, unsigned char *a,
unsigned char *xxx3, unsigned char *xxx4, unsigned char **xxx5)
{
html_context->put_chars_f(html_context, "^", 1);
put_chrs(html_context, "^", 1);
}
/* TODO: Add more languages. */
@ -106,7 +106,7 @@ html_quote(struct html_context *html_context, unsigned char *a,
{
unsigned char *q = quote_char[html_context->quote_level++ % 2];
html_context->put_chars_f(html_context, q, 1);
put_chrs(html_context, q, 1);
}
void
@ -116,7 +116,7 @@ html_quote_close(struct html_context *html_context, unsigned char *a,
{
unsigned char *q = quote_char[--html_context->quote_level % 2];
html_context->put_chars_f(html_context, q, 1);
put_chrs(html_context, q, 1);
}
void