Changed to string format instead of using normal string concat.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2445 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-25 11:45:51 +00:00
commit 284df892d8

View file

@ -349,7 +349,7 @@ namespace Greenshot.Interop.Office {
hrefEnd = "</A>";
}
string htmlImgEmbedded = string.Format("<BR/>{0}<IMG border=0 hspace=0 alt=\"{1}\" align=baseline src=\"cid:{2}\"><BR/>", href, attachmentName, contentID, hrefEnd);
string fallbackBody = "<HTML><BODY>" + htmlImgEmbedded + "</BODY></HTML>";
string fallbackBody = string.Format("<HTML><BODY>{0}</BODY></HTML>", htmlImgEmbedded);
if (bodyString == null) {
bodyString = fallbackBody;
} else {