From: konn Date: Sun, 13 Apr 2008 10:14:48 +0000 (+0000) Subject: * Added
tag for au XHTML converter. X-Git-Tag: v0.12.20~599 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ea60365ecd7f54f36d603fd21a1c624800a60d72;p=modchxj%2Fmod_chxj.git * Added
tag for au XHTML converter. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2190 1a406e8e-add9-4483-a2c8-d8cac5b7c224 --- diff --git a/src/chxj_chtml30.c b/src/chxj_chtml30.c index 2c447511..de882ce6 100644 --- a/src/chxj_chtml30.c +++ b/src/chxj_chtml30.c @@ -3106,6 +3106,7 @@ s_chtml30_end_dl_tag(void *pdoc, Node *UNUSED(child)) return chtml30->out; } + /** * It is a handter who processes the DT tag. * diff --git a/src/chxj_xhtml_mobile_1_0.c b/src/chxj_xhtml_mobile_1_0.c index 21a03a4f..cc2c41e2 100644 --- a/src/chxj_xhtml_mobile_1_0.c +++ b/src/chxj_xhtml_mobile_1_0.c @@ -97,6 +97,8 @@ static char *s_xhtml_1_0_start_blockquote_tag(void *pdoc, Node *node); static char *s_xhtml_1_0_end_blockquote_tag (void *pdoc, Node *node); static char *s_xhtml_1_0_start_dir_tag (void *pdoc, Node *node); static char *s_xhtml_1_0_end_dir_tag (void *pdoc, Node *node); +static char *s_xhtml_1_0_start_dl_tag (void *pdoc, Node *node); +static char *s_xhtml_1_0_end_dl_tag (void *pdoc, Node *node); static void s_init_xhtml(xhtml_t *xhtml, Doc *doc, request_rec *r, device_table *spec); static int s_xhtml_search_emoji(xhtml_t *xhtml, char *txt, char **rslt); @@ -341,8 +343,8 @@ tag_handler xhtml_handler[] = { }, /* tagDL */ { - NULL, - NULL, + s_xhtml_1_0_start_dl_tag, + s_xhtml_1_0_end_dl_tag, }, /* tagDD */ { @@ -2457,6 +2459,42 @@ s_xhtml_1_0_end_dir_tag(void *pdoc, Node *UNUSED(child)) W_L(""); return xhtml->out; } + + +/** + * It is a handler who processes the DL tag. + * + * @param pdoc [i/o] The pointer to the XHTML structure at the output + * destination is specified. + * @param node [i] The DL tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_xhtml_1_0_start_dl_tag(void *pdoc, Node *UNUSED(child)) +{ + xhtml_t *xhtml = GET_XHTML(pdoc); + Doc *doc = xhtml->doc; + W_L("
"); + return xhtml->out; +} + + +/** + * It is a handler who processes the DL tag. + * + * @param pdoc [i/o] The pointer to the XHTML structure at the output + * destination is specified. + * @param node [i] The DL tag node is specified. + * @return The conversion result is returned. + */ +static char * +s_xhtml_1_0_end_dl_tag(void *pdoc, Node *UNUSED(child)) +{ + xhtml_t *xhtml = GET_XHTML(pdoc); + Doc *doc = xhtml->doc; + W_L("
"); + return xhtml->out; +} /* * vim:ts=2 et */ diff --git a/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c b/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c index 5a94d8cb..43de125b 100644 --- a/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c +++ b/test/chxj_xhtml_mobile_1_0/test_chxj_xhtml_mobile_1_0.c @@ -511,9 +511,9 @@ main() CU_add_test(xhtml_suite, "test .", test_xhtml_dir_tag_001); CU_add_test(xhtml_suite, "test with no
  • .", test_xhtml_dir_tag_002); -#if 0 CU_add_test(xhtml_suite, "test
    .", test_xhtml_dl_tag_001); +#if 0 CU_add_test(xhtml_suite, "test
    .", test_xhtml_dt_tag_001); CU_add_test(xhtml_suite, "test
    with void value.", test_xhtml_dt_tag_002);