summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/eolian/types_generator.c28
1 files changed, 18 insertions, 10 deletions
diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c
index 93740e2097..3bdd5d3981 100644
--- a/src/bin/eolian/types_generator.c
+++ b/src/bin/eolian/types_generator.c
@@ -101,11 +101,15 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
101 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc); 101 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc);
102 else if (fdoc) 102 else if (fdoc)
103 { 103 {
104 Eina_Strbuf *fbuf = docs_generate_full(fdoc, 104 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n');
105 strlen(strrchr(eina_strbuf_string_get(buf), '\n'))); 105 if (nl)
106 if (fbuf) eina_strbuf_append_printf(buf, " %s", 106 {
107 eina_strbuf_string_get(fbuf)); 107 Eina_Strbuf *fbuf = docs_generate_full(fdoc, strlen(nl));
108 eina_strbuf_free(fbuf); 108 if (fbuf)
109 eina_strbuf_append_printf(buf, " %s",
110 eina_strbuf_string_get(fbuf));
111 eina_strbuf_free(fbuf);
112 }
109 } 113 }
110 eina_strbuf_append(buf, "\n"); 114 eina_strbuf_append(buf, "\n");
111 } 115 }
@@ -165,11 +169,15 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
165 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc); 169 if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc);
166 else if (fdoc) 170 else if (fdoc)
167 { 171 {
168 Eina_Strbuf *fbuf = docs_generate_full(fdoc, 172 const char *nl = strrchr(eina_strbuf_string_get(buf), '\n');
169 strlen(strrchr(eina_strbuf_string_get(buf), '\n'))); 173 if (nl)
170 if (fbuf) eina_strbuf_append_printf(buf, " %s", 174 {
171 eina_strbuf_string_get(fbuf)); 175 Eina_Strbuf *fbuf = docs_generate_full(fdoc, strlen(nl));
172 eina_strbuf_free(fbuf); 176 if (fbuf)
177 eina_strbuf_append_printf(buf, " %s",
178 eina_strbuf_string_get(fbuf));
179 eina_strbuf_free(fbuf);
180 }
173 } 181 }
174 eina_strbuf_append(buf, "\n"); 182 eina_strbuf_append(buf, "\n");
175 } 183 }