Fixed and closed #478: added div tag to fix layout problem.

This commit is contained in:
Matteo Tomasini 2010-02-09 13:48:01 +00:00
parent 5774c21f2b
commit 829b0b78c2
2 changed files with 7 additions and 3 deletions

View file

@ -16,5 +16,5 @@ using System.Reflection;
// //
// You can specify all the values or you can default the Revision and Build Numbers // You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.475")] [assembly: AssemblyVersion("3.0.1.476")]
[assembly: AssemblyFileVersion("3.0.1.475")] [assembly: AssemblyFileVersion("3.0.1.476")]

View file

@ -105,7 +105,6 @@ namespace ScrewTurn.Wiki {
// Print header // Print header
sb.Append(@"<div class=""messageheader"">"); sb.Append(@"<div class=""messageheader"">");
//sb.AppendFormat(@"<a id=""MSG_{0}""></a>", message.ID); //sb.AppendFormat(@"<a id=""MSG_{0}""></a>", message.ID);
sb.AppendFormat(@"<a id=""{0}"" href=""#{0}"" title=""Permalink"">&#0182;</a> ", Tools.GetMessageIdForAnchor(message.DateTime));
if(!currentPage.Provider.ReadOnly) { if(!currentPage.Provider.ReadOnly) {
// Print reply/edit/delete buttons only if provider is not read-only // Print reply/edit/delete buttons only if provider is not read-only
@ -144,6 +143,9 @@ namespace ScrewTurn.Wiki {
sb.Append("</div>"); sb.Append("</div>");
} }
sb.Append(@"<div>");
sb.AppendFormat(@"<a id=""{0}"" href=""#{0}"" title=""Permalink"">&#0182;</a> ", Tools.GetMessageIdForAnchor(message.DateTime));
// Print subject // Print subject
if(message.Subject.Length > 0) { if(message.Subject.Length > 0) {
sb.Append(@"<span class=""messagesubject"">"); sb.Append(@"<span class=""messagesubject"">");
@ -162,6 +164,8 @@ namespace ScrewTurn.Wiki {
sb.Append("</div>"); sb.Append("</div>");
sb.Append("</div>");
// Print body // Print body
sb.Append(@"<div class=""messagebody"">"); sb.Append(@"<div class=""messagebody"">");
sb.Append(FormattingPipeline.FormatWithPhase3(FormattingPipeline.FormatWithPhase1And2(message.Body, false, FormattingContext.MessageBody, currentPage), sb.Append(FormattingPipeline.FormatWithPhase3(FormattingPipeline.FormatWithPhase1And2(message.Body, false, FormattingContext.MessageBody, currentPage),