-
Notifications
You must be signed in to change notification settings - Fork 424
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
Variable interpolation in Kotlin #1363
Comments
@MagnusMG oh wow, I did not know about that, thank you for reporting this! It seems that Kotlin has its own string interpolation, but the docs are a bit minimal. It appears that Kotlin uses the The manual needs updating, agreed. Do you feel like providing a pull request for this? |
As I started looking into changing the documentation, I noticed that the Kotlin code examples already have the dollar signs escaped. I somehow missed that. That makes me less certain that a change of the manual is needed. Perhaps a short mention just under the first example. (The adoc files, are they for Asciidoctor or some other software?) |
AsciiDoctor yes. Maybe a |
I have installed GitHub Desktop, checked out the source code, created a branch and adjusted the adoc file. However, when I convert |
What is the path of the resulting HTML file you looked at? The generated docs end up in |
The task to just build the docs is:
The button vs sequential samples is a JavaScript plugin for AsciiDoctor. Do you see any errors in the build output? |
I found the generated HTML file, and it looks fine, so I created a pull request. I haven't used GiutHub or git before, the GitHub documentation reminds me of the "Sea of Talmud", and I was not able to find a relevant guide, but I think I got it right in the end. Tell me otherwise. |
…riable interpolation Closes remkop#1363.
…otlin variable interpolation" This reverts commit a838b7e.
…otlin variable interpolation" This reverts commit a838b7e.
I added variables to description strings in my Kotlin code, like this:
The result in the help text was that no text at all was printed for this parameter. Not even 'Any of the following:'.
After some experimentation I found that I had to escape the $-sign to make it work:
This could perhaps be added to the manual.
The text was updated successfully, but these errors were encountered: