texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/makeinfo makeinfo.c,1.48,1.49


From: dirt
Subject: texinfo/makeinfo makeinfo.c,1.48,1.49
Date: Fri, 27 Feb 2004 04:09:51 +0100

Update of /cvsroot/texinfo/texinfo/makeinfo
In directory sheep:/tmp/cvs-serv24573/makeinfo

Modified Files:
        makeinfo.c 
Log Message:
2004-02-27  Alper Ersoy  <address@hidden>

        * makeinfo/makeinfo.c (cm_image): for Info, enclose text image in
        brackets if @image is used inline (ie. paragraph is open).



Index: makeinfo.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/makeinfo.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** makeinfo.c  27 Feb 2004 02:40:47 -0000      1.48
--- makeinfo.c  27 Feb 2004 03:09:49 -0000      1.49
***************
*** 3298,3301 ****
--- 3298,3302 ----
                int save_inhibit_indentation = inhibit_paragraph_indentation;
                int save_filling_enabled = filling_enabled;
+               int image_in_brackets = paragraph_is_open;
  
                inhibit_paragraph_indentation = 1;
***************
*** 3323,3326 ****
--- 3324,3330 ----
                      add_word (" text=\"");
  
+                   if (image_in_brackets)
+                     add_char ('[');
+ 
                    /* Maybe we need to remove the final newline if the image
                       file is only one line to allow in-line images.  On the
***************
*** 3333,3336 ****
--- 3337,3343 ----
                        add_char (ch);
                      }
+ 
+                   if (image_in_brackets)
+                     add_char (']');
                    
                    if (!no_headers)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]