New body output logic

main
Inga 🏳‍🌈 15 years ago
parent f2252093c6
commit a5407ca07f
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 5
      Common/dataobjects/Post.cs
  4. 1
      templates/Full/elems/PostInfo.xslt

@ -163,6 +163,10 @@ namespace FLocal.Common.dataobjects {
);
}
private XNode XMLBody(UserContext context) {
return XElement.Parse("<body>" + context.outputParams.preprocessBodyIntermediate(this.body) + "</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)
);

@ -109,6 +109,7 @@
<br />
<font class="post">
<xsl:value-of select="body" disable-output-escaping="yes" />
<!--<xsl:copy-of select="body"/>-->
<br />
<br />
</font>

Loading…
Cancel
Save