Ending dot interfered with numeric decimal

This commit is contained in:
2015-01-12 16:51:37 +01:00
parent f493ccd9fa
commit 947f3cad8c
2 changed files with 19 additions and 9 deletions

View File

@ -376,9 +376,18 @@ namespace CobXmlSupport
}
if (tmpStr.Length > 0)
{
__wordList.Add(new RowWord(tmpStr, wrdStart, false));
tmpStr = "";
wrdStart = 0;
if (tmpStr.Length > 1 && tmpStr.Substring(tmpStr.Length - 1, 1) == ".")
{
__wordList.Add(new RowWord(tmpStr.Substring(0, tmpStr.Length - 1), wrdStart, false));
tmpStr = "";
wrdStart = 0;
}
else
{
__wordList.Add(new RowWord(tmpStr, wrdStart, false));
tmpStr = "";
wrdStart = 0;
}
}
if (__wordList.Count > 0)
{