mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Fix duplicated pauses for multiple sentence terminators like ...
This commit is contained in:
parent
47adb4e976
commit
131643e47f
@ -429,7 +429,7 @@ FString UTypewriterTextWidget::CalculateSegments(FString* OutCurrentRunName)
|
||||
// and also optionally not if there isn't whitespace after (e.g. to not pause on ".txt")
|
||||
if (LettersLeft < Segment.Text.Len())
|
||||
{
|
||||
if (IsSentenceTerminator(Segment.Text[LettersLeft]) ||
|
||||
if (!IsSentenceTerminator(Segment.Text[LettersLeft]) &&
|
||||
(!bPauseOnlyIfWhitespaceFollowsSentenceTerminator || FText::IsWhitespace(Segment.Text[LettersLeft])))
|
||||
{
|
||||
PauseTime = PauseTimeAtSentenceTerminators;
|
||||
|
Loading…
x
Reference in New Issue
Block a user