biswanaths / scala_jira_gh

for testing the migration for the scala jira to the github for scala-xml
0 stars 0 forks source link

PrettyPrinter removes newlines #102

Open biswanaths opened 9 years ago

biswanaths commented 9 years ago

=== What steps will reproduce the problem (please be specific and

scala> <foo>{PCData("hello\nworld")}</foo>
res51: scala.xml.Elem =
<foo><![CDATA[hello
world]]></foo>

scala> (new PrettyPrinter(Int.MaxValue, 2)).format(res51)
res52: String = <foo><![CDATA[hello world]]></foo>

=== What is the expected behavior? ===
Should print "hello\nworld"

scala> (new PrettyPrinter(Int.MaxValue, 2)).format(res51)
res52: String = <foo><![CDATA[hello\nworld]]></foo>

=== What do you see instead? ===
prints "hello world"

=== What versions of the following are you using? ===

  • Scala: 2.8.1
Imported from : SI-4543
som-snytt commented 9 years ago

@biswanaths Are you aware of the JIRA spam?

biswanaths commented 9 years ago

@som-snytt , I assume you are talking about https://issues.scala-lang.org/browse/TEST-14

Sorry for the inconvenience caused by barrage of test/spam mail. I assumed the test project is not used and watched by anybody and I needed a ticket on which to test the migration script I was writing for pulling out xml jira issues from jira to scala-xml.

If you are not talking about Test-14, please let me know what else is the issue.

som-snytt commented 9 years ago

Yes, that's it. I was just checking that something wasn't running unattended. :)