devhelp r1148 - in trunk: . src



Author: rhult
Date: Mon Oct  6 17:01:35 2008
New Revision: 1148
URL: http://svn.gnome.org/viewvc/devhelp?rev=1148&view=rev

Log:
2008-10-06  Richard Hult  <richard imendio com>

	* src/dh-assistant.c (assistant_set_link): Break the line after
	the #define for macros, to make the output narrower.


Modified:
   trunk/ChangeLog
   trunk/src/dh-assistant.c

Modified: trunk/src/dh-assistant.c
==============================================================================
--- trunk/src/dh-assistant.c	(original)
+++ trunk/src/dh-assistant.c	Mon Oct  6 17:01:35 2008
@@ -291,7 +291,7 @@
 
         if (start && end) {
                 gchar       *buf;
-                gchar       *name;
+                gboolean     break_line;
                 const gchar *function;
                 gchar       *html;
                 gchar       *tmp;
@@ -305,20 +305,28 @@
                  */
                 switch (dh_link_get_link_type (link)) {
                 case DH_LINK_TYPE_FUNCTION:
-                        name = strstr (buf, dh_link_get_name (link));
-                        if (name && name > buf) {
-                                name[-1] = '\n';
-                        }
+                        break_line = TRUE;
                         function = "onload=\"reformatSignature()\"";
                         break;
                 case DH_LINK_TYPE_MACRO:
+                        break_line = TRUE;
                         function = "onload=\"cleanupSignature()\"";
                         break;
                 default:
+                        break_line = FALSE;
                         function = "";
                         break;
                 }
 
+                if (break_line) {
+                        gchar *name;
+
+                        name = strstr (buf, dh_link_get_name (link));
+                        if (name && name > buf) {
+                                name[-1] = '\n';
+                        }
+                }
+
                 html = g_strdup_printf (
                         "<html>"
                         "<head>"



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