Browse Source

The xml editor now keeps the existing document folds if the xml is no longer well formed.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1107 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
2192003822
  1. 5
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlFoldingStrategy.cs

5
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlFoldingStrategy.cs

@ -89,7 +89,7 @@ namespace ICSharpCode.XmlEditor
/// elements. /// elements.
/// </summary> /// </summary>
bool showAttributesWhenFolded = false; bool showAttributesWhenFolded = false;
public XmlFoldingStrategy() public XmlFoldingStrategy()
{ {
} }
@ -136,7 +136,8 @@ namespace ICSharpCode.XmlEditor
} }
} catch (Exception) { } catch (Exception) {
// If the xml is not well formed keep the foldings // If the xml is not well formed keep the foldings
// we found. // that already exist in the document.
return document.FoldingManager.FoldMarker;
} }
return foldMarkers; return foldMarkers;

Loading…
Cancel
Save