From 19dd46c5b023f75f037e30a5804466139ae129df Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 23 Apr 2014 17:07:00 +0200 Subject: [PATCH] ATISEncoder: minor tweak no trailing blank at runway designator --- src/ATC/ATISEncoder.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ATC/ATISEncoder.cxx b/src/ATC/ATISEncoder.cxx index 436c6bb55..75a397f32 100644 --- a/src/ATC/ATISEncoder.cxx +++ b/src/ATC/ATISEncoder.cxx @@ -46,7 +46,9 @@ string ATCSpeech::getSpokenNumber( string number ) { string result; 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; }