From 703581a9ab3968c4f15fac7fa9e366ce0cb5e5b7 Mon Sep 17 00:00:00 2001
From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com>
Date: Fri, 3 Sep 2010 17:37:05 +0000
Subject: [PATCH] Newlines replaced with EOL constant
---
Builder/IISMainHandler/build.txt | 2 +-
Common/UBBParser.cs | 2 +-
Common/dataobjects/Post.cs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt
index c16c9d0..a47db8f 100644
--- a/Builder/IISMainHandler/build.txt
+++ b/Builder/IISMainHandler/build.txt
@@ -1 +1 @@
-1046
\ No newline at end of file
+1048
\ No newline at end of file
diff --git a/Common/UBBParser.cs b/Common/UBBParser.cs
index e28d999..3ebddaf 100644
--- a/Common/UBBParser.cs
+++ b/Common/UBBParser.cs
@@ -158,7 +158,7 @@ namespace FLocal.Common {
}
public static string UBBToIntermediate(string UBB) {
- //return HttpUtility.HtmlEncode(UBB).Replace("\r\n", "
\r\n");
+ //return HttpUtility.HtmlEncode(UBB).Replace(Util.EOL, "
" + Util.EOL);
return BBParserGateway.instance.Parse(UBB);
}
diff --git a/Common/dataobjects/Post.cs b/Common/dataobjects/Post.cs
index 88ed8ad..a60b0d3 100644
--- a/Common/dataobjects/Post.cs
+++ b/Common/dataobjects/Post.cs
@@ -564,7 +564,7 @@ namespace FLocal.Common.dataobjects {
account,
posterAccount,
this.title,
- String.Format("{0}\r\n[post]{2}[/post]\r\n{1}", type.description, comment, this.id)
+ String.Format("{0}{3}[post]{2}[/post]{3}{1}", type.description, comment, this.id, Util.EOL)
);
newMessage.conversation.markAsRead(account, newMessage, newMessage);
}