From: konn Date: Wed, 9 Apr 2008 09:08:59 +0000 (+0000) Subject: * Added tag for CHTML2.0 converter. X-Git-Tag: v0.12.20~724 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fc28c0e95f76fb2085658463ffdd29dae372e066;p=modchxj%2Fmod_chxj.git * Added tag for CHTML2.0 converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2059 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- diff --git a/src/chxj_chtml20.c b/src/chxj_chtml20.c index cd7fc6a2..b47e9654 100644 --- a/src/chxj_chtml20.c +++ b/src/chxj_chtml20.c @@ -89,8 +89,10 @@ static char *s_chtml20_start_option_tag (void *pdoc, Node *node); static char *s_chtml20_end_option_tag (void *pdoc, Node *node); static char *s_chtml20_start_div_tag (void *pdoc, Node *node); static char *s_chtml20_end_div_tag (void *pdoc, Node *node); -static char *s_chtml20_start_blockquote_tag (void *pdoc, Node *node); -static char *s_chtml20_end_blockquote_tag (void *pdoc, Node *node); +static char *s_chtml20_start_blockquote_tag(void *pdoc, Node *node); +static char *s_chtml20_end_blockquote_tag (void *pdoc, Node *node); +static char *s_chtml20_start_dir_tag (void *pdoc, Node *node); +static char *s_chtml20_end_dir_tag (void *pdoc, Node *node); static void s_init_chtml20(chtml20_t *chtml, Doc *doc, request_rec *r, device_table *spec); @@ -333,8 +335,8 @@ tag_handler chtml20_handler[] = { }, /* tagDIR */ { - NULL, - NULL, + s_chtml20_start_dir_tag, + s_chtml20_end_dir_tag, }, /* tagDL */ { @@ -3025,6 +3027,45 @@ s_chtml20_end_blockquote_tag(void *pdoc, Node *UNUSED(child)) } +/** + * It is a handler who processes the DIR tag. + * + * @param pdoc [i/o] The pointer to the CHTML structure at the output + * destination is specified. + * @param node [i] The DIR tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_chtml20_start_dir_tag(void *pdoc, Node *UNUSED(child)) +{ + chtml20_t *chtml20; + Doc *doc; + chtml20 = GET_CHTML20(pdoc); + doc = chtml20->doc; + W20_L(""); + return chtml20->out; +} + + +/** + * It is a handler who processes the DIR tag. + * + * @param pdoc [i/o] The pointer to the CHTML structure at the output + * destination is specified. + * @param node [i] The DIR tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_chtml20_end_dir_tag(void *pdoc, Node *UNUSED(child)) +{ + chtml20_t *chtml20; + Doc *doc; + + chtml20 = GET_CHTML20(pdoc); + doc = chtml20->doc; + W20_L(""); + return chtml20->out; +} /* * vim:ts=2 et */