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

Code example line breaks collapsed in @example blocks #9752

Closed
scabug opened this issue Apr 13, 2016 · 3 comments
Closed

Code example line breaks collapsed in @example blocks #9752

scabug opened this issue Apr 13, 2016 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 13, 2016

When a code block is rendered in the main class comment the line breaks are preserved.

When in an @example tag on a method the line breaks are removed.

|Okay in main comment|!scaladoc-code-block-whitespace-collapsed-not.png!
|Collapsed in {{@example}}|!scaladoc-code-block-whitespace-collapsed.png!|

!firefox-41-0.png!

@scabug
Copy link
Author

scabug commented Apr 13, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9752?orig=1
Reporter: @janekdb
Affected Versions: 2.12.0-M3
Attachments:

@scabug
Copy link
Author

scabug commented Apr 25, 2016

@gourlaysama said:
I'll take that one. That's a bug in the comment parser in CommentFactoryBase.

@scabug
Copy link
Author

scabug commented Apr 26, 2016

@gourlaysama said:
scala/scala#5125

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

2 participants