From 6a8b1127432cc066413233b30505f8dffbbc6474 Mon Sep 17 00:00:00 2001 From: jonsd Date: Thu, 14 Feb 2008 15:10:55 +0000 Subject: [PATCH] Remove punctuation pauses from the end of text, unless the espeakENDPAUSE flag is set in espeak_Synth(). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@142 d46cf337-b52f-0410-862d-fd96e6ae7743 --- src/readclause.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/readclause.cpp b/src/readclause.cpp index cdf20ab5..549d4ae1 100644 --- a/src/readclause.cpp +++ b/src/readclause.cpp @@ -2109,7 +2109,10 @@ if(option_ssml) parag=1; nl_count++; c2 = GetC(); // skip past space(s) } - UngetC(c2); + if(!Eof()) + { + UngetC(c2); + } if((nl_count==0) && (c1 == '.')) {