Fixed #463: angular brackets are now properly processed when switching from Visual to Preview.

This commit is contained in:
Dario Solera 2010-01-20 13:55:47 +00:00
parent 66c13cdce4
commit ceb228f937
3 changed files with 4 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.459")] [assembly: AssemblyVersion("3.0.1.460")]
[assembly: AssemblyFileVersion("3.0.1.459")] [assembly: AssemblyFileVersion("3.0.1.460")]

View file

@ -655,6 +655,7 @@ namespace ScrewTurn.Wiki {
targetNamespace.DefaultPage = localPage; targetNamespace.DefaultPage = localPage;
DumpNamespaces(allNamespaces); DumpNamespaces(allNamespaces);
namespacesCache = null;
return new NamespaceInfo(targetNamespace.Name, this, targetNamespace.DefaultPage); return new NamespaceInfo(targetNamespace.Name, this, targetNamespace.DefaultPage);
} }

View file

@ -157,7 +157,7 @@ namespace ScrewTurn.Wiki {
//if last view was WYSIWYG take text from WYSIWYG to Preview //if last view was WYSIWYG take text from WYSIWYG to Preview
//in both cases I need to synchronize WYSIWYG and Markup view //in both cases I need to synchronize WYSIWYG and Markup view
if(inWYSIWYG) { if(inWYSIWYG) {
lblPreview.Text = lblWYSIWYG.Text; lblPreview.Text = lblWYSIWYG.Text.Replace("&lt;", "<").Replace("&gt;", ">");
txtMarkup.Text = ReverseFormatter.ReverseFormat(lblWYSIWYG.Text); txtMarkup.Text = ReverseFormatter.ReverseFormat(lblWYSIWYG.Text);
} }
else { else {