Skip to content

Commit

Permalink
autolink: answer this question.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Feb 27, 2025
1 parent a0b36bf commit 3ff5374
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/parser/autolink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ pub(crate) fn process_email_autolinks<'a>(
post.first_child().unwrap().data.borrow_mut().sourcepos = nsp;

if let Some(remain) = remain {
// TODO: why we don't need the return value here? What's the
// relationship between it, nsp.end.column, and initial_end_col?
consume_spx(&mut spx, skip);
let rs = consume_spx(&mut spx, skip);
assert_eq!(rs, nsp.end.column);

let mut asp: Sourcepos = (
sourcepos.end.line,
Expand Down

0 comments on commit 3ff5374

Please sign in to comment.