Skip to content

Commit

Permalink
v1.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dialogflowchatbot committed Dec 15, 2024
1 parent 2571395 commit 606164c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dialogflow"
version = "1.17.1"
version = "1.18.0"
edition = "2021"
homepage = "https://dialogflowchatbot.github.io/"
authors = ["dialogflowchatbot <[email protected]>"]
Expand Down
12 changes: 9 additions & 3 deletions src/kb/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,21 @@ pub(super) fn parse_docx(buf: Vec<u8>) -> Result<String> {
for r in run.children.iter() {
match r {
docx_rs::RunChild::Text(text) => {
// log::info!("Docx text={}", text.text);
log::info!("Docx text={}", text.text);
doc_text.push_str(&text.text);
doc_text.push('\n');
doc_text.push('\n');
// doc_text.push('\n');
// doc_text.push('\n');
}
docx_rs::RunChild::Sym(sym) => {
log::info!("meet sym");
doc_text.push_str(&sym.char);
}
docx_rs::RunChild::Break(_) => {
log::info!("meet break");
doc_text.push('\n');
}
docx_rs::RunChild::Tab(_) => {
log::info!("meet tab");
doc_text.push('\n');
}
_ => {}
Expand Down

0 comments on commit 606164c

Please sign in to comment.