diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-09-20 12:15:27 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-09-20 12:15:27 +0400 |
commit | e9f5a771a8e44cb703a22aa19b5aa7f30a6b905d (patch) | |
tree | dfd6dfb8578164bb120c5b8a496f04e597939d37 /main/src/addins/AspNet | |
parent | 4a975e29ff2c1f9bffec97993fbcd0285ab05af5 (diff) |
Fixed 'Bug 623 - Automatic code indention is broken in aspx files
containing parametrized views'.
Diffstat (limited to 'main/src/addins/AspNet')
-rw-r--r-- | main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.StateEngine/AspNetDirectiveState.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.StateEngine/AspNetDirectiveState.cs b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.StateEngine/AspNetDirectiveState.cs index 2dbf3b730f..abaa6e06c9 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.StateEngine/AspNetDirectiveState.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.StateEngine/AspNetDirectiveState.cs @@ -50,15 +50,17 @@ namespace MonoDevelop.AspNet.StateEngine : this (attributeState, nameState, new XmlMalformedTagState ()) {} public AspNetDirectiveState (XmlAttributeState attributeState, XmlNameState nameState, - XmlMalformedTagState malformedTagState)
+ XmlMalformedTagState malformedTagState) { this.AttributeState = attributeState; this.NameState = nameState; this.MalformedTagState = malformedTagState; + attributeState.AllowOpeningTagCharInsideAttributeValue = true; Adopt (this.AttributeState); Adopt (this.NameState); - Adopt (this.MalformedTagState);
+ Adopt (this.MalformedTagState); +
} const int ENDING = 1; @@ -96,23 +98,21 @@ namespace MonoDevelop.AspNet.StateEngine } else { directive.End (context.Location); if (context.BuildTree) { - XContainer container = (XContainer) context.Nodes.Peek (); + XContainer container = (XContainer)context.Nodes.Peek (); container.AddChildNode (directive); } } return Parent; } //ending but not '>'? Error; go to end. - } - else if (char.IsLetter (c)) { + } else if (char.IsLetter (c)) { rollback = string.Empty; if (!directive.IsNamed) { return NameState; } else { return AttributeState; } - } - else if (char.IsWhiteSpace (c)) + } else if (char.IsWhiteSpace (c)) return null; rollback = string.Empty; |