Handle empty textmode string at the end of a line
Handle empty textmode string at the end of a line

This is a rather ugly patch. It shan't live long, though, as the server
code gets refactored to address #693 and related.

Fix: #610

Signed-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@nicta.com.au>

alco90/soml,alco90/soml,lees0414/EUproject,mytestbed/oml,mytestbed/oml,lees0414/EUproject,lees0414/EUproject,lees0414/EUproject,mytestbed/oml,alco90/soml,lees0414/EUproject,alco90/soml,alco90/soml,mytestbed/oml,mytestbed/oml