Skip to content

Commit

Permalink
- fixed #168 - Stackoverflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC committed Mar 8, 2022
1 parent a08e88a commit 21efe11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("3.17.6.4")]
[assembly: AssemblyVersion("3.17.6.6")]
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class XmlDocRichTextPresenterEx : XmlDocVisitor {
private int myLevel;

protected XmlDocRichTextPresenterEx(XmlNode node, PsiLanguageType languageType, DeclaredElementPresenterTextStyles textStyles, IPsiModule module) {
//this.myLastString = new RichText();
this.myModule = module;
this.myLanguageType = languageType;
this.myTextStyles = textStyles;
Expand Down Expand Up @@ -136,11 +135,11 @@ private void WrapInNewLine(Action<XmlElement> action, XmlElement element) {
this.Append("\n");
}

public override void VisitPara(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(((XmlDocVisitor)this).VisitPara), element);
public override void VisitPara(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(base.VisitPara), element);

public override void VisitSummary(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(((XmlDocVisitor)this).VisitSummary), element);
public override void VisitSummary(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(base.VisitSummary), element);

public override void VisitRemarks(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(((XmlDocVisitor)this).VisitRemarks), element);
public override void VisitRemarks(XmlElement element) => this.WrapInNewLine(new Action<XmlElement>(base.VisitRemarks), element);

public override void VisitC(XmlElement element) => this.Append(element.InnerText, XmlDocRichTextPresenterEx.ourCodeStyle);

Expand Down

0 comments on commit 21efe11

Please sign in to comment.