diff options
Diffstat (limited to 'parse_wiki_text')
-rw-r--r-- | parse_wiki_text/src/link.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parse_wiki_text/src/link.rs b/parse_wiki_text/src/link.rs index 24b3ba5..38bbd3f 100644 --- a/parse_wiki_text/src/link.rs +++ b/parse_wiki_text/src/link.rs @@ -139,14 +139,14 @@ fn parse_end( end: trail_end_position, ordinal: vec![], start: state.scan_position, - target: state.wiki_text[target_start_position..target_end_position].trim_right(), + target: state.wiki_text[target_start_position..target_end_position].trim_end(), }); } Some(crate::Namespace::File) => { state.nodes.push(crate::Node::Image { end: trail_end_position, start: state.scan_position, - target: state.wiki_text[target_start_position..target_end_position].trim_right(), + target: state.wiki_text[target_start_position..target_end_position].trim_end(), text: vec![], }); } @@ -177,7 +177,7 @@ fn parse_end( state.nodes.push(crate::Node::Link { end: trail_end_position, start: state.scan_position, - target: &state.wiki_text[target_start_position..target_end_position].trim_right(), + target: &state.wiki_text[target_start_position..target_end_position].trim_end(), text, }); } |