asciidoctor - attribute with uppercase

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

asciidoctor - attribute with uppercase

ch007m
Hi,

Can someone confirm or infirm that an attribute with uppercase letter is not supported ?

Example - 1 (DOES NOT WORK)

asciidoctor -a showScript=true my_page.ad

my_page.ad

ifdef::showScript[]
TODO
endif::showScript[]

Example - 1 (WORK)

asciidoctor -a showscript=true my_page.ad

my_page.ad

ifdef::showscript[]
TODO
endif::showscript[]

Regards,







Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor - attribute with uppercase

mojavelinux
Administrator

Attributes are case insensitive. They are forced to lowercase when assigned & resolved. They should also be forced to lowercase when compared. This looks like a bug.

-Dan

On Feb 20, 2014 7:45 AM, "ch007m [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
Hi,

Can someone confirm or infirm that an attribute with uppercase letter is not supported ?

Example - 1 (DOES NOT WORK)

asciidoctor -a showScript=true my_page.ad

my_page.ad

ifdef::showScript[]
TODO
endif::showScript[]

Example - 1 (WORK)

asciidoctor -a showscript=true my_page.ad

my_page.ad

ifdef::showscript[]
TODO
endif::showscript[]

Regards,







Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-attribute-with-uppercase-tp1521.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: asciidoctor - attribute with uppercase

ch007m


On Thu, Feb 20, 2014 at 11:50 PM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Attributes are case insensitive. They are forced to lowercase when assigned & resolved. They should also be forced to lowercase when compared. This looks like a bug.

-Dan

On Feb 20, 2014 7:45 AM, "ch007m [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
Hi,

Can someone confirm or infirm that an attribute with uppercase letter is not supported ?

Example - 1 (DOES NOT WORK)

asciidoctor -a showScript=true my_page.ad

my_page.ad

ifdef::showScript[]
TODO
endif::showScript[]

Example - 1 (WORK)

asciidoctor -a showscript=true my_page.ad

my_page.ad

ifdef::showscript[]
TODO
endif::showscript[]

Regards,







Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-attribute-with-uppercase-tp1521.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-attribute-with-uppercase-tp1521p1523.html
To unsubscribe from asciidoctor - attribute with uppercase, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard