diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-06-05 16:43:08 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-06-05 16:43:30 +0100 |
commit | 5876b08fdb999610930e5ad4de971d0e540c3a9e (patch) | |
tree | 116d48016a4836fcef782fc8ba36165917389036 /src | |
parent | e94fdac8852cba3442b7b2103b8ff59cfd6c06d1 (diff) |
eolian/generator: use more correct indent offset in types doc gen
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/eolian/types_generator.c | 6 |
1 files 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) | |||
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 | const char *obuf = eina_strbuf_string_get(buf); | ||
105 | Eina_Strbuf *fbuf = docs_generate_full(fdoc, | 104 | Eina_Strbuf *fbuf = docs_generate_full(fdoc, |
106 | strrchr(obuf, '\n') - obuf + 1); | 105 | strlen(strrchr(eina_strbuf_string_get(buf), '\n'))); |
107 | if (fbuf) eina_strbuf_append_printf(buf, " %s", | 106 | if (fbuf) eina_strbuf_append_printf(buf, " %s", |
108 | eina_strbuf_string_get(fbuf)); | 107 | eina_strbuf_string_get(fbuf)); |
109 | eina_strbuf_free(fbuf); | 108 | eina_strbuf_free(fbuf); |
@@ -166,9 +165,8 @@ _type_generate(const Eolian_Type *tp, Eina_Bool full) | |||
166 | if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc); | 165 | if (fdesc) eina_strbuf_append_printf(buf, " /** %s */", fdesc); |
167 | else if (fdoc) | 166 | else if (fdoc) |
168 | { | 167 | { |
169 | const char *obuf = eina_strbuf_string_get(buf); | ||
170 | Eina_Strbuf *fbuf = docs_generate_full(fdoc, | 168 | Eina_Strbuf *fbuf = docs_generate_full(fdoc, |
171 | strrchr(obuf, '\n') - obuf + 1); | 169 | strlen(strrchr(eina_strbuf_string_get(buf), '\n'))); |
172 | if (fbuf) eina_strbuf_append_printf(buf, " %s", | 170 | if (fbuf) eina_strbuf_append_printf(buf, " %s", |
173 | eina_strbuf_string_get(fbuf)); | 171 | eina_strbuf_string_get(fbuf)); |
174 | eina_strbuf_free(fbuf); | 172 | eina_strbuf_free(fbuf); |