summaryrefslogtreecommitdiff
path: root/src/bin/eolian/docs_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian/docs_generator.c')
-rw-r--r--src/bin/eolian/docs_generator.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/bin/eolian/docs_generator.c b/src/bin/eolian/docs_generator.c
index 70475850f0..6272d4681c 100644
--- a/src/bin/eolian/docs_generator.c
+++ b/src/bin/eolian/docs_generator.c
@@ -242,8 +242,11 @@ docs_generate_function(const Eolian_Function *fid, Eolian_Function_Type ftype, i
242 indent, curl, buf, wbuf); 242 indent, curl, buf, wbuf);
243 243
244 eina_strbuf_append_char(buf, '\n'); 244 eina_strbuf_append_char(buf, '\n');
245 _indent_line(buf, indent); 245 if (desc || par || rdoc || pdoc)
246 eina_strbuf_append(buf, " *\n"); 246 {
247 _indent_line(buf, indent);
248 eina_strbuf_append(buf, " *\n");
249 }
247 250
248 if (desc) 251 if (desc)
249 { 252 {
@@ -275,7 +278,7 @@ docs_generate_function(const Eolian_Function *fid, Eolian_Function_Type ftype, i
275 _append_section(desc, indent, curl + 3, buf, wbuf); 278 _append_section(desc, indent, curl + 3, buf, wbuf);
276 eina_strbuf_append_char(buf, '\n'); 279 eina_strbuf_append_char(buf, '\n');
277 } 280 }
278 if (par) 281 if (par || rdoc)
279 { 282 {
280 _indent_line(buf, indent); 283 _indent_line(buf, indent);
281 eina_strbuf_append(buf, " *\n"); 284 eina_strbuf_append(buf, " *\n");
@@ -334,13 +337,17 @@ docs_generate_function(const Eolian_Function *fid, Eolian_Function_Type ftype, i
334 force_out = EINA_TRUE; 337 force_out = EINA_TRUE;
335 } 338 }
336 } 339 }
340
341 if (!par && rdoc)
342 {
343 _indent_line(buf, indent);
344 eina_strbuf_append(buf, " *\n");
345 }
337 } 346 }
338 eina_iterator_free(itr); 347 eina_iterator_free(itr);
339 348
340 if (rdoc) 349 if (rdoc)
341 { 350 {
342 _indent_line(buf, indent);
343 eina_strbuf_append(buf, " *\n");
344 curl = _indent_line(buf, indent); 351 curl = _indent_line(buf, indent);
345 eina_strbuf_append(buf, " * @return "); 352 eina_strbuf_append(buf, " * @return ");
346 curl += sizeof(" * @return ") - 1; 353 curl += sizeof(" * @return ") - 1;