From c48c4ace3630451c771afa20080f9bfb7ba05c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolnai=20Tam=C3=A1s?= Date: Sun, 18 Nov 2012 14:42:04 +0100 Subject: [PATCH] Correct skipping source file line of msgctxt Change-Id: I7aed7a75c6e9b36efca9837c0137075065bcd1e6 --- l10ntools/source/po.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index df9efe31bc64..648634c2f569 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -252,10 +252,12 @@ void GenPoEntry::readFromFile(std::ifstream& rIFStream) m_sMsgStr = lcl_GenNormString(sLine.copy(7)); pLastMsg = &m_sMsgStr; } - else if (sLine.startsWith("\"") && pLastMsg && - (pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\"") ) + else if (sLine.startsWith("\"") && pLastMsg) { - *pLastMsg += lcl_GenNormString(sLine); + if (pLastMsg != &m_sMsgCtxt || sLine != "\"" + m_sReference + "\\n\"") + { + *pLastMsg += lcl_GenNormString(sLine); + } } else break;