Whats wrong with this simple example?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Whats wrong with this simple example?

wimalopaan
Hi all,

following is a simple example. The first occurrance of `++C` is rendered as "0", the second (without the footnote) is rendered correct as "++C" in fixed font.
 
= Test
wimalopaan <x@y.de>
:lang: de
:compat-mode:
:doctype: book
:toc2:
:toc-title: Inhalt

== Chap0

What is `++C`{wj}footnote:[test.]?

What is `++C`


Any hints?

Wilhelm
Reply | Threaded
Open this post in threaded view
|

Re: Whats wrong with this simple example?

mojavelinux
Administrator

Whenever you are dealing with C++ or ++C in AsciiDoc, I recommend moving it to an attribute because ++ has strong meaning in the syntax.

:cpp: C++
:ppc: ++C

In compat mode, you'd use:

What is +{cpp}+ and +{cpp}+?

In default mode, you'd use backticks.

Btw, there was a footnote bug in 1.5.0 that was fixed in 1.5.1, so it could have been related to that. Passthroughs were being left unsubstituted.

I hope that helps!

-Dan

On Oct 13, 2014 9:10 AM, "wimalopaan [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
Hi all,

following is a simple example. The first occurrance of `++C` is rendered as "0", the second (without the footnote) is rendered correct as "++C" in fixed font.
 
= Test
wimalopaan <[hidden email]>
:lang: de
:compat-mode:
:doctype: book
:toc2:
:toc-title: Inhalt

== Chap0

What is `++C`{wj}footnote:[test.]?

What is `++C`


Any hints?

Wilhelm


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Whats-wrong-with-this-simple-example-tp2343.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Whats wrong with this simple example?

wimalopaan
Thank you!

1.5.1 fixed it!

--
 Wilhelm