Skip to content

Commit 1257625

Browse files
committed
allow multiple lines
1 parent 2a8dae4 commit 1257625

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/data.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,8 @@ impl Data {
316316
_names: &mut Option<Vec<(Vec<String>, String)>>,
317317
_ret: &mut Option<String>,
318318
) {
319-
if !self.data.is_empty() {
320-
self.data.pop();
321-
}
322-
if let Some(n) = plot.names.first() {
319+
self.data.clear();
320+
for n in &plot.names {
323321
let item = Tokens::infix(
324322
n.name.as_str(),
325323
&mut self.vars,

0 commit comments

Comments
 (0)