Skip to content

Commit 59edf76

Browse files
committed
Fix the 'seri' option
1 parent 7b715f5 commit 59edf76

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,11 @@ fn process_event(event: &Event, mut state: &mut State) -> Step {
689689
if let Some(ref serial) = table.columns[i].serial {
690690
if table.columns[i].value.borrow().is_empty() {
691691
let id = serial.get()+1;
692-
table.columns[i].value.borrow_mut().push_str(&id.to_string());
692+
let idstr = id.to_string();
693+
table.columns[i].value.borrow_mut().push_str(&idstr);
694+
table.lastid.borrow_mut().push_str(&idstr);
693695
serial.set(id);
694-
return Step::Repeat; // Continue the repeat loop because another column may also match the current path
696+
continue;
695697
}
696698
}
697699
// Handle 'subtable' case (the 'cols' entry has 'cols' of its own)

0 commit comments

Comments
 (0)