diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dc8217..948fae2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ SPDX-License-Identifier: MIT instead of always using `/usr`. - Improve the documentation parser: - Fix the definition of methods to only contain the actual definition. + - Remove spurious members in module documentation. ## v0.1.2 (2020-07-25) diff --git a/src/parser.rs b/src/parser.rs index dba1451..cf2af5d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -493,7 +493,7 @@ fn get_members( ) -> anyhow::Result> { let mut members: Vec = Vec::new(); if let Some(table) = select_first(document, &format!("#{} + table", ty.group_id()))? { - let items = select(table.as_node(), "td:first-child :first-child")?; + let items = select(table.as_node(), "td:first-child > :first-child")?; for item in items { let item_name = item.as_node().text_contents(); let docblock = item.as_node().parent().and_then(|n| n.next_sibling());