[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/makeinfo makeinfo.c,1.47,1.48
From: |
dirt |
Subject: |
texinfo/makeinfo makeinfo.c,1.47,1.48 |
Date: |
Fri, 27 Feb 2004 03:40:50 +0100 |
Update of /cvsroot/texinfo/texinfo/makeinfo
In directory sheep:/tmp/cvs-serv23821/makeinfo
Modified Files:
makeinfo.c
Log Message:
2004-02-27 Alper Ersoy <address@hidden>
* makeinfo/makeinfo.c (cm_image): for HTML, if paragraph is not open,
enclose image in a <div> block.
Index: makeinfo.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/makeinfo.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** makeinfo.c 24 Feb 2004 19:22:07 -0000 1.47
--- makeinfo.c 27 Feb 2004 02:40:47 -0000 1.48
***************
*** 3232,3235 ****
--- 3232,3237 ----
if (html)
{
+ int image_in_div = 0;
+
if (pathname == NULL && access (fullname, R_OK) != 0)
{
***************
*** 3245,3248 ****
--- 3247,3256 ----
}
+ if (!paragraph_is_open)
+ {
+ add_html_block_elt ("<div class=\"block-image\">");
+ image_in_div = 1;
+ }
+
add_html_elt ("<img src=");
add_word_args ("\"%s\"", fullname);
***************
*** 3250,3253 ****
--- 3258,3264 ----
add_word_args ("\"%s\">",
escape_string (*alt_arg ? text_expansion (alt_arg) : fullname));
+
+ if (image_in_div)
+ add_html_block_elt ("</div>");
}
else if (xml && docbook)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/makeinfo makeinfo.c,1.47,1.48,
dirt <=