forked from enlightenment/efl
eolian: double newline ends summary, not single
This allows you to split the summary on multiple lines if necessary (for example to satisfy line limit) @fix
This commit is contained in:
parent
20934fa03d
commit
af2bcfa9d1
|
@ -275,9 +275,15 @@ read_doc(Eo_Lexer *ls, Eo_Token *tok, int line, int column)
|
|||
}
|
||||
if (is_newline(ls->current))
|
||||
{
|
||||
while (is_newline(ls->current))
|
||||
next_line_ws(ls);
|
||||
break;
|
||||
next_line_ws(ls);
|
||||
if (is_newline(ls->current))
|
||||
{
|
||||
while (is_newline(ls->current))
|
||||
next_line_ws(ls);
|
||||
break;
|
||||
}
|
||||
else
|
||||
eina_strbuf_append_char(ls->buff, ' ');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
struct Foo {
|
||||
[[This is struct Foo.
|
||||
It does stuff.
|
||||
|
||||
This is a longer description for struct Foo.
|
||||
|
||||
|
|
|
@ -1150,7 +1150,7 @@ START_TEST(eolian_docs)
|
|||
fail_if(!(type = eolian_type_struct_get_by_name("Foo")));
|
||||
fail_if(!(doc = eolian_type_documentation_get(type)));
|
||||
fail_if(strcmp(eolian_documentation_summary_get(doc),
|
||||
"This is struct Foo."));
|
||||
"This is struct Foo. It does stuff."));
|
||||
fail_if(strcmp(eolian_documentation_description_get(doc),
|
||||
"This is a longer description for struct Foo.\n\n"
|
||||
"This is another paragraph."));
|
||||
|
|
Loading…
Reference in New Issue