holy poop the multi variable thingy works i deed it
This commit is contained in:
parent
f331b6f8cd
commit
e1c7c1fbfc
1 changed files with 8 additions and 6 deletions
14
src/main.rs
14
src/main.rs
|
@ -118,13 +118,15 @@ fn load_macro(set: String, mac: String, inputs: String, vars: Vec<String>) -> St
|
|||
contents = keg.to_string();
|
||||
}
|
||||
}
|
||||
if coont == 1 {
|
||||
if coont != 1 {
|
||||
let jazz: Vec<&str> = contents.split("\n").collect();
|
||||
contents = jazz[1].to_string();
|
||||
}
|
||||
if coont == 2 {
|
||||
let jazz: Vec<&str> = contents.split("\n").collect();
|
||||
contents = jazz[3].to_string();
|
||||
let mut xcont = "".to_string();
|
||||
for x in jazz {
|
||||
if x.contains("[") == false && x.contains("]") == false {
|
||||
xcont = format!("{}\n{}",xcont,x);
|
||||
}
|
||||
}
|
||||
contents = xcont.to_string();
|
||||
}
|
||||
return contents.to_string();
|
||||
}
|
||||
|
|
Reference in a new issue