According to Daniel Naber:
> to my mind, there's a part of the documentation that should to become
> clearer: In cf_general.html, it is said you should have a backslash "to
> split the <value> across several lines". I find this confusing in case
> you're trying to split *several* values about several lines, especially
> with options that have to values, like external_parsers.
> 
> Perhaps to documentation should give an example of how to do it correct,
> e.g.:
> 
> external_parsers:     application/msword blah/parse_doc.pl \
>                                       application/pdf blah/parse_doc.pl
>                                       
> Now is this correct anyway? As I said, this was really confusing to me.

Each attribute is assigned a single <value>, but for many attributes,
that value is a list.  In the case of external_parsers, the value is
interpreted as a quoted string list, which means any individual item
in the list can contain spaces if the item is quoted.  How the value
of an attribute is interpreted is independent of how it's read in from
the configuration file, so it doesn't matter whether you're splitting
a single string or a list of 100 strings.

In your example above, you did correctly split the value over two lines.
To split a value over three or more lines, you need to put a backslash
at the end of all but the final line.  Another way to look at it is any
sequence of \<newline> gets stripped out, so that

attr:   foo\
bar

is equivalent to

attr:   fo\
ob\
ar

is equivalent to

attr:   foobar

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to