mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 13:13:43 +00:00
fix: wrong word count when empty line exists (#795)
This commit is contained in:
parent
bdb127109f
commit
0babb8b451
1 changed files with 1 additions and 2 deletions
|
@ -133,9 +133,8 @@ impl TextExportWorker {
|
|||
match item {
|
||||
Group(g) => self.frame(&g.frame),
|
||||
Text(t) => {
|
||||
write!(self.w, "{}", t.text.as_str())
|
||||
write!(self.w, " {}", t.text.as_str())
|
||||
}
|
||||
// Meta(ContentHint(c), _) => f.write_char(*c),
|
||||
Link(..) | Shape(..) | Image(..) => self.w.write_all(b"object"),
|
||||
Tag(..) => Ok(()),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue