diff --git a/Cargo.lock b/Cargo.lock index c1258cb..ffad849 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -239,7 +239,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "xl" -version = "0.1.3" +version = "0.1.4" dependencies = [ "chrono", "quick-xml", diff --git a/Cargo.toml b/Cargo.toml index 1829326..073d256 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xl" -version = "0.1.3" +version = "0.1.4" edition = "2018" license = "MIT" description = "A package to let you process *big* Excel files very quickly" diff --git a/src/lib.rs b/src/lib.rs index 84eb115..027567b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -149,7 +149,7 @@ pub fn run(config: Config) -> Result<(), String> { pub fn usage() { println!(concat!( "\n", - "xlcat 0.1.3\n", + "xlcat 0.1.4\n", "Kevin Ryan \n", "\n", "xlcat is like cat, but for Excel files (xlsx files to be precise). You simply\n", diff --git a/src/ws.rs b/src/ws.rs index 3aa736c..ac1c120 100644 --- a/src/ws.rs +++ b/src/ws.rs @@ -337,7 +337,7 @@ impl<'a> Iterator for RowIter<'a> { Ok(Event::Text(ref e)) if in_value => { c.raw_value = e.unescape_and_decode(&reader).unwrap(); c.value = match &c.cell_type[..] { - "s" | "str" => { + "s" => { if let Ok(pos) = c.raw_value.parse::() { let s = &strings[pos]; // .to_string() ExcelValue::String(Cow::Borrowed(s)) @@ -345,6 +345,9 @@ impl<'a> Iterator for RowIter<'a> { ExcelValue::String(Cow::Owned(c.raw_value.clone())) } }, + "str" => { + ExcelValue::String(Cow::Owned(c.raw_value.clone())) + }, "b" => { if c.raw_value == "0" { ExcelValue::Bool(false)