diff options
author | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-01-28 23:13:01 +0300 |
---|---|---|
committer | phkoehn <phkoehn@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-01-28 23:13:01 +0300 |
commit | 2fd9dc163d5fd4f0b80a5f618aac2c721d5cab74 (patch) | |
tree | a71de3ccb57176f9904c23c7f819aa97640fd81d /moses | |
parent | 1a4740d79c707e86f56ae0fd87b1dbfef80b61c2 (diff) |
fixed bug with XML markup
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1547 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/XmlOption.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/src/XmlOption.cpp b/moses/src/XmlOption.cpp index 4e7ff8159..e71dfc97f 100644 --- a/moses/src/XmlOption.cpp +++ b/moses/src/XmlOption.cpp @@ -122,7 +122,7 @@ std::vector<XmlOption> ProcessAndStripXMLTags(std::string& line) { std::string::size_type endOfName = tag.find_first_of(' '); std::string nextTagName = tag; bool isUnary = tag[tag.size() - 1] == '/'; - bool isOpen = tag[1] != '/'; + bool isOpen = tag[0] != '/'; if (endOfName != std::string::npos) { nextTagName = tag.substr(0,endOfName); tagContents = tag.substr(endOfName+1); |