From a5407ca07f4f02523dec77a1a1c806e92ca42e14 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sat, 3 Jul 2010 09:25:58 +0000 Subject: [PATCH] New body output logic --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- Common/dataobjects/Post.cs | 5 +++++ templates/Full/elems/PostInfo.xslt | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 0316458..eed0d1a 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -503 \ No newline at end of file +506 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index 34578cc..9ce0f49 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -239 \ No newline at end of file +241 \ No newline at end of file diff --git a/Common/dataobjects/Post.cs b/Common/dataobjects/Post.cs index 660b4cb..8a36e7b 100644 --- a/Common/dataobjects/Post.cs +++ b/Common/dataobjects/Post.cs @@ -163,6 +163,10 @@ namespace FLocal.Common.dataobjects { ); } + private XNode XMLBody(UserContext context) { + return XElement.Parse("
" + context.outputParams.preprocessBodyIntermediate(this.body) + "", LoadOptions.PreserveWhitespace); + } + public XElement exportToXmlWithoutThread(UserContext context, bool includeParentPost, params XElement[] additional) { if(!context.isPostVisible(this)) return null; @@ -177,6 +181,7 @@ namespace FLocal.Common.dataobjects { new XElement("layerName", this.layer.name), new XElement("title", this.title), new XElement("body", context.outputParams.preprocessBodyIntermediate(this.body)), + //this.XMLBody(context), new XElement("bodyShort", this.bodyShort), new XElement("threadId", this.threadId) ); diff --git a/templates/Full/elems/PostInfo.xslt b/templates/Full/elems/PostInfo.xslt index ef45165..896761e 100644 --- a/templates/Full/elems/PostInfo.xslt +++ b/templates/Full/elems/PostInfo.xslt @@ -109,6 +109,7 @@