diff options
author | Colin Walters <walters@verbum.org> | 2011-08-12 06:01:56 -0400 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-08-13 09:42:38 -0300 |
commit | 1037bdc150df91abdc7c7f4e8bb278fe7e4b5cee (patch) | |
tree | 9c14141a82c48718e619e2208f7e0300ec580347 /tests | |
parent | d3a7314ba46b32e0dc215ad7d54fbf888ac519d0 (diff) | |
download | gobject-introspection-1037bdc150df91abdc7c7f4e8bb278fe7e4b5cee.tar.gz |
scanner: Don't throw away blank lines in the docs
For generating documentation, we actually want to preserve these.
https://bugzilla.gnome.org/show_bug.cgi?id=656389
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 13 | ||||
-rw-r--r-- | tests/scanner/regress.c | 16 | ||||
-rw-r--r-- | tests/scanner/regress.h | 2 |
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index a19969e7..7e0b2e5b 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -2342,6 +2342,19 @@ call and can be released on return.</doc> </parameter> </parameters> </function> + <function name="test_multiline_doc_comments" + c:identifier="regress_test_multiline_doc_comments"> + <doc xml:whitespace="preserve">This is a function. + +It has multiple lines in the documentation. + +The sky is blue. + +You will give me your credit card number.</doc> + <return-value transfer-ownership="none"> + <type name="none" c:type="void"/> + </return-value> + </function> <function name="test_short" c:identifier="regress_test_short"> <return-value transfer-ownership="none"> <type name="gshort" c:type="gshort"/> diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index c6608f40..86927a05 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -3143,6 +3143,22 @@ regress_test_strv_in_gvalue (void) } /** + * regress_test_multiline_doc_comments: + * + * This is a function. + * + * It has multiple lines in the documentation. + * + * The sky is blue. + * + * You will give me your credit card number. + */ +void +regress_test_multiline_doc_comments (void) +{ +} + +/** * regress_introspectable_via_alias: * */ diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h index 04ebe29e..7b8d9de4 100644 --- a/tests/scanner/regress.h +++ b/tests/scanner/regress.h @@ -608,6 +608,8 @@ GValue *regress_test_strv_in_gvalue (void); GObject * _regress_this_is_a_private_symbol (void); +void regress_test_multiline_doc_comments (void); + /** * RegressSkippedStructure: (skip) * |