Skip to content

implement truncation functionality in document parser#41

Merged
deepin-bot[bot] merged 2 commits intolinuxdeepin:masterfrom
Johnson-zs:master
Jun 24, 2025
Merged

implement truncation functionality in document parser#41
deepin-bot[bot] merged 2 commits intolinuxdeepin:masterfrom
Johnson-zs:master

Conversation

@Johnson-zs
Copy link
Contributor

No description provided.

- Added support for content truncation in the document parser, allowing users to specify a maximum byte limit for processed files.
- Introduced methods for setting truncation limits, safely appending text with truncation control, and applying final truncation at reasonable boundaries.
- Enhanced existing file conversion methods to respect truncation settings and stop processing when limits are reached.
- Added unit tests to validate truncation functionality, including boundary conditions and backward compatibility with existing methods.

Log: This enhancement improves the document parser's ability to handle large files efficiently while providing clear feedback on truncation.
@github-actions
Copy link

TAG Bot

TAG: 1.0.20
EXISTED: no
DISTRIBUTION: unstable

@Johnson-zs
Copy link
Contributor Author

/forcemerge

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jun 24, 2025

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 52d26d5 into linuxdeepin:master Jun 24, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant