From: Pavel Sanda Date: Sat, 4 Dec 2010 23:01:59 +0000 (+0000) Subject: Revert r36654. X-Git-Tag: 2.0.0~1503 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=82b712c1fc47f156b5cb88f816b6aa64356b5891;p=lyx.git Revert r36654. I'm not going to wait more, since we want to freeze trunk. http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg163934.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36727 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ExternalSupport.cpp b/src/insets/ExternalSupport.cpp index d21c3d84ab..aa6f51cbe9 100644 --- a/src/insets/ExternalSupport.cpp +++ b/src/insets/ExternalSupport.cpp @@ -381,17 +381,6 @@ int writeExternal(InsetExternalParams const & params, str = substituteCommands(params, str, format); str = substituteOptions(params, str, format); - // If the template is a date, we must remove the newline at the end to - // avoid LaTeX errors like the one described in bug #4398 - if (params.templatename() == "Date") { - // depending on the OS we have either \r\n or only \n - size_t pos = str.rfind('\r'); - if (pos != string::npos) - str.erase(pos); - pos = str.rfind('\n'); - if (pos != string::npos) - str.erase(pos); - } // FIXME UNICODE os << from_utf8(str); return int(count(str.begin(), str.end(),'\n'));