public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Order in which default files are applied
@ 2021-07-06  2:45 Nandakumar Chandrasekhar
       [not found] ` <877ddcd6-18f6-4c24-8896-98f7cb04b2d4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Nandakumar Chandrasekhar @ 2021-07-06  2:45 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 933 bytes --]

Dear Folks,

I have a question about using multiple default files.

Is there any order in which default files are applied or are they applied 
in the order given in the command line?

What of the default file is not given on the command line?

I would like to know the behavior of which takes effect if we specify the 
same field in two or more default files.

Does Pandoc do any validation in these cases?

Hope someone can shed some light. This is in relation to plugin I am 
writing for a static site generator.

Nanda

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/877ddcd6-18f6-4c24-8896-98f7cb04b2d4n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1348 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Order in which default files are applied
       [not found] ` <877ddcd6-18f6-4c24-8896-98f7cb04b2d4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-07-06 16:01   ` John MacFarlane
       [not found]     ` <m24kd7jurs.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2021-07-06 16:01 UTC (permalink / raw)
  To: Nandakumar Chandrasekhar, pandoc-discuss


If you have multiple --defaults they will be processed
in the order given on the command line.

Defaults specified within another file will
be processed before the other fields in that file.

There is validation, depending on the field.

As for what happens when two defaults specify different
values for the same: it is supposed to behave just as
if you had two command line options.  In some cases,
you'll get an override; in other cases (e.g. with
--css which can be used multiple times on the command
line), a list of values will be formed.




Nandakumar Chandrasekhar <navanitachora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Dear Folks,
>
> I have a question about using multiple default files.
>
> Is there any order in which default files are applied or are they applied 
> in the order given in the command line?
>
> What of the default file is not given on the command line?
>
> I would like to know the behavior of which takes effect if we specify the 
> same field in two or more default files.
>
> Does Pandoc do any validation in these cases?
>
> Hope someone can shed some light. This is in relation to plugin I am 
> writing for a static site generator.
>
> Nanda
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/877ddcd6-18f6-4c24-8896-98f7cb04b2d4n%40googlegroups.com.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Order in which default files are applied
       [not found]     ` <m24kd7jurs.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
@ 2021-07-06 17:37       ` Nandakumar Chandrasekhar
       [not found]         ` <3587bc3a-6eb3-45e1-869e-b9ff86265da0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Nandakumar Chandrasekhar @ 2021-07-06 17:37 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2657 bytes --]

Thank you for your detailed reply.

I think my question has to do with cases where the reader or to field is 
specified in two or more defaults files, in which case I believe one would 
take precedence over the other.

Am I correct in assuming the above?

And which value takes precedence will primarily depend on the order in 
which the defaults files are applied.

I just wish to make sure that the plugin and Pandoc behave the same way 
when dealing with defaults files.

Nanda

On Tuesday, July 6, 2021 at 9:02:13 AM UTC-7 John MacFarlane wrote:

>
> If you have multiple --defaults they will be processed
> in the order given on the command line.
>
> Defaults specified within another file will
> be processed before the other fields in that file.
>
> There is validation, depending on the field.
>
> As for what happens when two defaults specify different
> values for the same: it is supposed to behave just as
> if you had two command line options. In some cases,
> you'll get an override; in other cases (e.g. with
> --css which can be used multiple times on the command
> line), a list of values will be formed.
>
>
>
>
> Nandakumar Chandrasekhar <navani...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > Dear Folks,
> >
> > I have a question about using multiple default files.
> >
> > Is there any order in which default files are applied or are they 
> applied 
> > in the order given in the command line?
> >
> > What of the default file is not given on the command line?
> >
> > I would like to know the behavior of which takes effect if we specify 
> the 
> > same field in two or more default files.
> >
> > Does Pandoc do any validation in these cases?
> >
> > Hope someone can shed some light. This is in relation to plugin I am 
> > writing for a static site generator.
> >
> > Nanda
> >
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/877ddcd6-18f6-4c24-8896-98f7cb04b2d4n%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3587bc3a-6eb3-45e1-869e-b9ff86265da0n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3933 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Order in which default files are applied
       [not found]         ` <3587bc3a-6eb3-45e1-869e-b9ff86265da0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-07-06 23:10           ` John MacFarlane
  0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2021-07-06 23:10 UTC (permalink / raw)
  To: Nandakumar Chandrasekhar, pandoc-discuss

Correct.

Nandakumar Chandrasekhar <navanitachora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Thank you for your detailed reply.
>
> I think my question has to do with cases where the reader or to field is 
> specified in two or more defaults files, in which case I believe one would 
> take precedence over the other.
>
> Am I correct in assuming the above?
>
> And which value takes precedence will primarily depend on the order in 
> which the defaults files are applied.
>
> I just wish to make sure that the plugin and Pandoc behave the same way 
> when dealing with defaults files.
>
> Nanda
>
> On Tuesday, July 6, 2021 at 9:02:13 AM UTC-7 John MacFarlane wrote:
>
>>
>> If you have multiple --defaults they will be processed
>> in the order given on the command line.
>>
>> Defaults specified within another file will
>> be processed before the other fields in that file.
>>
>> There is validation, depending on the field.
>>
>> As for what happens when two defaults specify different
>> values for the same: it is supposed to behave just as
>> if you had two command line options. In some cases,
>> you'll get an override; in other cases (e.g. with
>> --css which can be used multiple times on the command
>> line), a list of values will be formed.
>>
>>
>>
>>
>> Nandakumar Chandrasekhar <navani...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > Dear Folks,
>> >
>> > I have a question about using multiple default files.
>> >
>> > Is there any order in which default files are applied or are they 
>> applied 
>> > in the order given in the command line?
>> >
>> > What of the default file is not given on the command line?
>> >
>> > I would like to know the behavior of which takes effect if we specify 
>> the 
>> > same field in two or more default files.
>> >
>> > Does Pandoc do any validation in these cases?
>> >
>> > Hope someone can shed some light. This is in relation to plugin I am 
>> > writing for a static site generator.
>> >
>> > Nanda
>> >
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "pandoc-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/877ddcd6-18f6-4c24-8896-98f7cb04b2d4n%40googlegroups.com
>> .
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3587bc3a-6eb3-45e1-869e-b9ff86265da0n%40googlegroups.com.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-06 23:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06  2:45 Order in which default files are applied Nandakumar Chandrasekhar
     [not found] ` <877ddcd6-18f6-4c24-8896-98f7cb04b2d4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-07-06 16:01   ` John MacFarlane
     [not found]     ` <m24kd7jurs.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2021-07-06 17:37       ` Nandakumar Chandrasekhar
     [not found]         ` <3587bc3a-6eb3-45e1-869e-b9ff86265da0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-07-06 23:10           ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).