Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taking an extra word when it should just end the paragraph. #15

Open
hrusticn opened this issue Jan 23, 2023 · 0 comments
Open

Taking an extra word when it should just end the paragraph. #15

hrusticn opened this issue Jan 23, 2023 · 0 comments

Comments

@hrusticn
Copy link

To have a better understanding of this issue here's an example where I set to cut at 100 WORDS and it for some reason doesn't end that paragraph (maybe even OK since there we have 100 words) but if I want one more word, it takes it and one extra word.

https://codepen.io/hrusticn/pen/QWBQXRZ

Please see now that it truncates at 101, and It starts with "In....."

once I change the word count to 100, It should just end the previous paragraph (take a look at the source html) but it doesn't do that, it cuts less so I'm missing now one word before cutting the paragraph. Then it ends with "Miami and South...." so the last word (Beach) isn't included.

Just toggle between 100 and 101 and you will see that I can't ever finish with only that paragraph, either I'm missing "Beach" when set to 100 or I'm getting one extra word (from the next paragraph) and that's the "In..."

It's not a solution for me to put those two paragraphs inside one paragraph because I have endless examples where I want to end at that paragraph and not at the next, so I can't go from article to article to put them in the same one, it's not an option.
Maybe there's some option that I didn't pay attention but It might be a bug as well.

Thanks !

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

No branches or pull requests

1 participant