[vala/0.40] libvaladoc: Don't try to create a Content.ListItem when there is none
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] libvaladoc: Don't try to create a Content.ListItem when there is none
- Date: Tue, 9 Apr 2019 13:49:41 +0000 (UTC)
commit 2849cca87808f0af2527a90c0582e8a867754cc7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Mar 15 19:18:25 2019 +0100
libvaladoc: Don't try to create a Content.ListItem when there is none
libvaladoc/documentation/documentationparser.vala | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libvaladoc/documentation/documentationparser.vala
b/libvaladoc/documentation/documentationparser.vala
index 4a9c0c9bd..c97c24970 100644
--- a/libvaladoc/documentation/documentationparser.vala
+++ b/libvaladoc/documentation/documentationparser.vala
@@ -636,12 +636,11 @@ public class Valadoc.DocumentationParser : Object, ResourceLocator {
TokenType.str ("I.").action ((token) => { new_list_item
(Content.List.Bullet.ORDERED_UPPER_CASE_ROMAN); })
}),
optional_invisible_spaces
- })
- .set_skip (() => { new_list_item (Content.List.Bullet.NONE); }),
+ }),
Rule.seq ({ run })
.set_start (() => {
var content = _factory.create_paragraph ();
- ((ListItem) peek ()).content.add (content);
+ ((BlockContent) peek ()).content.add (content);
push (content);
})
.set_reduce (() => { pop (); }),
@@ -650,7 +649,7 @@ public class Valadoc.DocumentationParser : Object, ResourceLocator {
.set_name ("IndentedItem")
.set_start (() => { current_level = 0; })
.set_reduce (() => {
- var content_list = ((ListItem) peek ()).content;
+ var content_list = ((BlockContent) peek ()).content;
if (content_list.size > 0 && content_list.last () is Text) {
((Text) content_list.last ()).content._chomp ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]