Newlines replaced with EOL constant

main
Inga 🏳‍🌈 14 years ago
parent 508e9af467
commit 703581a9ab
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/UBBParser.cs
  3. 2
      Common/dataobjects/Post.cs

@ -158,7 +158,7 @@ namespace FLocal.Common {
} }
public static string UBBToIntermediate(string UBB) { public static string UBBToIntermediate(string UBB) {
//return HttpUtility.HtmlEncode(UBB).Replace("\r\n", "<br/>\r\n"); //return HttpUtility.HtmlEncode(UBB).Replace(Util.EOL, "<br/>" + Util.EOL);
return BBParserGateway.instance.Parse(UBB); return BBParserGateway.instance.Parse(UBB);
} }

@ -564,7 +564,7 @@ namespace FLocal.Common.dataobjects {
account, account,
posterAccount, posterAccount,
this.title, 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); newMessage.conversation.markAsRead(account, newMessage, newMessage);
} }

Loading…
Cancel
Save