diff --git a/src/meta_plugin/text.rs b/src/meta_plugin/text.rs index 2394d7e..1fd7f17 100644 --- a/src/meta_plugin/text.rs +++ b/src/meta_plugin/text.rs @@ -183,27 +183,7 @@ impl MetaPlugin for TextMetaPlugin { // If we've reached our buffer limit and haven't finalized yet if self.buffer.len() >= self.max_buffer_size && !self.is_finalized { - // We already determined it's text at this point, so we can finalize - if self.is_binary_content == Some(false) { - // Output word and line counts - if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs( - "text_word_count", - self.word_count.to_string(), - self.base.outputs() - ) { - metadata.push(meta_data); - } - - if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs( - "text_line_count", - self.line_count.to_string(), - self.base.outputs() - ) { - metadata.push(meta_data); - } - } - - // Mark as finalized + // Mark as finalized but don't output word/line counts here self.is_finalized = true; }