Skip to content

Unexpected output in for loop document due to text : C++ [Informative] #693

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

Closed
animeshsrivastava24 opened this issue Jul 21, 2019 · 1 comment · Fixed by #694
Closed

Comments

@animeshsrivastava24
Copy link
Contributor

animeshsrivastava24 commented Jul 21, 2019

Refer to Line 72 of https://github.com/arduino/reference-en/blob/master/Language/Structure/Control%20Structure/for.adoc

image

It produces an output

image

The output should be rather:

image

there is also one more occurrence of C++ in further documentation of the same file.

@animeshsrivastava24
Copy link
Contributor Author

animeshsrivastava24 commented Jul 21, 2019

@per1234 I have found the solution to this issue, but I believed that this might stand as an issue as it may help contributors in future contributions.

Please refer to :

  1. backticks don't produce literal passthrough asciidoctor/asciidoctor#1083
  2. Add built-in attribute for C++ named cpp asciidoctor/asciidoctor#1208

The problem arose as C++ often gets misinterpreted as passthrough text.
It must be written as:

pass:[C++]

for proper working and getting the desired output.

I'll soon send a PR for fixing this issue. Eagerly waiting for your valuable review on PR #692.

@animeshsrivastava24 animeshsrivastava24 changed the title Unexpected output in for loop document [Informative] Unexpected output in for loop document due to text : C++ [Informative] Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant