Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scala.xml.dtd.ParsedEntityDecl: toString method not overridden #3246

Closed
scabug opened this issue Apr 2, 2010 · 4 comments
Closed

scala.xml.dtd.ParsedEntityDecl: toString method not overridden #3246

scabug opened this issue Apr 2, 2010 · 4 comments

Comments

@scabug
Copy link

scabug commented Apr 2, 2010

The toString method is not correctly overridden for scala.xml.dtd.ParsedEntityDecl and related EntityDeclarations, causing an incorrect DocType to be generated

Workaround for 2.7.7: create a local class that overrides toString:

 class PE(name: String, entdef: EntityDef) extends scala.xml.dtd.ParsedEntityDecl(name, entdef) {
    override def toString : String = {
      val sb = new StringBuilder()
      
      return this.toString(sb).toString
    }
  } 
@scabug
Copy link
Author

scabug commented Apr 2, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3246?orig=1
Reporter: Marc Kster (mwkuster)

@scabug
Copy link
Author

scabug commented Apr 2, 2010

Marc Kster (mwkuster) said:
This problem is quite similar to https://lampsvn.epfl.ch/trac/scala/ticket/1620

@scabug
Copy link
Author

scabug commented Mar 19, 2012

@acruise said:
I haven't touched a DTD in years, is there any way you can give us a self-contained test?

@scabug
Copy link
Author

scabug commented Jul 17, 2015

@SethTisue said:
The scala-xml library is now community-maintained. Issues with it are now tracked at https://github.com/scala/scala-xml/issues instead of here in the Scala JIRA.

Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant