From 5876b08fdb999610930e5ad4de971d0e540c3a9e Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Fri, 5 Jun 2015 16:43:08 +0100 Subject: [PATCH] eolian/generator: use more correct indent offset in types doc gen --- src/bin/eolian/types_generator.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/eolian/types_generator.c b/src/bin/eolian/types_generator.c index 35e741d928..93740e2097 100644 --- a/src/bin/eolian/types_generator.c +++ b/src/bin/eolian/types_generator.c @@ -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);