On 9 June 2012 15:20, Markus <[email protected]> wrote:
> Hi,
>
> I came across the following today -- and was wondering if that would
> be considered a bug and also if there are any workarounds (other than
> a post-processing script).
>
> Say, I have the following document:
>
> A quote substitution test
> =========================
>
> Here is a text. ``Followed by a quote.''footnote:[Which has a footnote
> at
> the end.]
>
> The document is using doubled-up single quotes ` and ', relying on
> ASCIIDOC to generate the proper typographic quotation marks. Now, what
> happens is not quite what I anticipated:
>
>
> <div id="header">
> <h1>A quote substitution test</h1>
> </div>
> <div id="content">
> <div id="preamble">
> <div class="sectionbody">
> <div class="paragraph"><p>Here is a text. &#8216;`Followed by a
> quote.&#8217;'<span class="footnote"><br />[Which has a footnote at
> the end.]<br /></span></p></div>
> </div>
> </div>
> </div>
>
> As you can see, one opening quote and one closing quote are being
> replaced and one of each are left untouched. This is caused by the
> fact that "footnote:" follows the closing quotes without a space. Of
> course, I could put a space after the quotes, but that would then mean
> that space is there in the generated output as well.
>
> Any thoughts or suggestions?

One quick one, stick a null attribute reference between the '' and footnote eg

blah
====
:n:

blah ``blah''{n}footnote::[blah]

works for me.

Thats probably the least intrusive option without defining something
in the config file.

Cheers
Lex
>
> Thanks,
> -Markus
>
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to