1
0
Fork 0

ATISEncoder: minor tweak

no trailing blank at runway designator
This commit is contained in:
Torsten Dreyer 2014-04-23 17:07:00 +02:00
parent 15525aab58
commit 19dd46c5b0

View file

@ -46,7 +46,9 @@ string ATCSpeech::getSpokenNumber( string number )
{ {
string result; string result;
for( string::iterator it = number.begin(); it != number.end(); ++it ) { for( string::iterator it = number.begin(); it != number.end(); ++it ) {
result.append( getSpokenDigit( (*it) - '0' )).SPACE; if( false == result.empty() )
result.SPACE;
result.append( getSpokenDigit( (*it) - '0' ));
} }
return result; return result;
} }