From 3f84c17745f7e32234171fe55ca3f9ca3e042958 Mon Sep 17 00:00:00 2001 From: konn Date: Fri, 11 Apr 2008 13:27:24 +0000 Subject: [PATCH] * Added
tag for CHTML3.0 converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2112 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- src/chxj_chtml30.c | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/src/chxj_chtml30.c b/src/chxj_chtml30.c index 941ff1fc..42f84a03 100644 --- a/src/chxj_chtml30.c +++ b/src/chxj_chtml30.c @@ -100,6 +100,8 @@ static char *s_chtml30_start_dl_tag(void *pdoc, Node *node); static char *s_chtml30_end_dl_tag (void *pdoc, Node *node); static char *s_chtml30_start_dt_tag(void *pdoc, Node *node); static char *s_chtml30_end_dt_tag (void *pdoc, Node *node); +static char *s_chtml30_start_dd_tag(void *pdoc, Node *node); +static char *s_chtml30_end_dd_tag (void *pdoc, Node *node); static void s_init_chtml30(chtml30_t *chtml, Doc *doc, request_rec *r, device_table *spec); @@ -349,8 +351,8 @@ tag_handler chtml30_handler[] = { }, /* tagDD */ { - NULL, - NULL, + s_chtml30_start_dd_tag, + s_chtml30_end_dd_tag, }, /* tagMENU */ { @@ -2957,6 +2959,43 @@ s_chtml30_end_dt_tag(void *pdoc, Node *UNUSED(child)) chtml30 = GET_CHTML30(pdoc); return chtml30->out; } + + +/** + * It is a handder who processes the DD tag. + * + * @param pdoc [i/o] The pointer to the CHTML structure at the output + * destination is specified. + * @param node [i] The DD tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_chtml30_start_dd_tag(void *pdoc, Node *UNUSED(child)) +{ + chtml30_t *chtml30; + Doc *doc; + chtml30 = GET_CHTML20(pdoc); + doc = chtml30->doc; + W_L("
"); + return chtml30->out; +} + + +/** + * It is a handder who processes the DD tag. + * + * @param pdoc [i/o] The pointer to the CHTML structure at the output + * destination is specified. + * @param node [i] The DD tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_chtml30_end_dd_tag(void *pdoc, Node *UNUSED(child)) +{ + chtml30_t *chtml30; + chtml30 = GET_CHTML20(pdoc); + return chtml30->out; +} /* * vim:ts=2 et */ -- 2.11.0