eolian/generator: use more correct indent offset in types doc gen

This commit is contained in:
Daniel Kolesa 2015-06-05 16:43:08 +01:00
parent e94fdac885
commit 5876b08fdb
1 changed files with 2 additions and 4 deletions

View File

@ -101,9 +101,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc);
else if (fdoc)
{
const char *obuf = eina_strbuf_string_get(buf);
Eina_Strbuf *fbuf = docs_generate_full(fdoc,
strrchr(obuf, '\n') - obuf + 1);
strlen(strrchr(eina_strbuf_string_get(buf), '\n')));
if (fbuf) eina_strbuf_append_printf(buf, " %s",
eina_strbuf_string_get(fbuf));
eina_strbuf_free(fbuf);
@ -166,9 +165,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full)
if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc);
else if (fdoc)
{
const char *obuf = eina_strbuf_string_get(buf);
Eina_Strbuf *fbuf = docs_generate_full(fdoc,
strrchr(obuf, '\n') - obuf + 1);
strlen(strrchr(eina_strbuf_string_get(buf), '\n')));
if (fbuf) eina_strbuf_append_printf(buf, " %s",
eina_strbuf_string_get(fbuf));
eina_strbuf_free(fbuf);