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

[Firefox] Line breaks are lost when copying function/constructor signature #2314

Closed
IgnatBeresnev opened this issue Jan 18, 2022 · 1 comment
Labels
bug format: html An issue/PR related to Dokka's default HTML output format html: frontend An issue/PR that only or primarily requires frontend work (html/css)

Comments

@IgnatBeresnev
Copy link
Member

Describe the bug
Reproduced only with Firefox, other browsers work as expected: line breaks are lost when pasting content from function/constructor parameters wrapping (introduced in #2309)

There's a very old bug in mozilla's tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=492147

Expected behaviour
Content should be copied as

class PrimaryConstructorWithVals(
    val valString: String = "val def", 
    var varString: String = "var def", 
    var valStringWithoutDefaultValue: String, 
    paramString: String
)

Actual behaviour
Content is copied as

class PrimaryConstructorWithVals(    val valString: String = "val def",     var varString: String = "var def",     var valStringWithoutDefaultValue: String,     paramString: String)

To Reproduce
Generate dokkaHtml for a function/constructor with 3+ parameters, try to copy it (either via the copy button or by selecting) and paste somewhere

Installation

  • Browser: Firefox 96.0
  • Dokka version: 1.6.20

Additional context
Using \a also doesn't work.

.parameters.wrapped > .parameter {
    content: '\a';
}
@IgnatBeresnev IgnatBeresnev added bug format: html An issue/PR related to Dokka's default HTML output format labels Jan 18, 2022
@IgnatBeresnev IgnatBeresnev added the html: frontend An issue/PR that only or primarily requires frontend work (html/css) label Nov 17, 2023
@IgnatBeresnev
Copy link
Member Author

Not relevant anymore as the copy signature button was removed in #2577

@IgnatBeresnev IgnatBeresnev closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug format: html An issue/PR related to Dokka's default HTML output format html: frontend An issue/PR that only or primarily requires frontend work (html/css)
Projects
None yet
Development

No branches or pull requests

1 participant