[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Indentation in package descriptions



Quoting Martin Eberhard Schauer (Martin.E.Schauer@gmx.de):
> Recently some  descriptions  added a space character in the second and the
> following lines of a paragraph, they changed their format from
> foo
> bar
> blurb
> 
> to
> foo
>  bar
>  blurb.
> 
> One more space character is meant for the display of lists, and normal text
> looks quite ugly. One example is
> 
> http://packages.debian.org/sid/postfix-cdb.

this one comes from the postfix package, that has a special way to
deal with its control file.

In the package source tree, the control file looks like this:

Package: postfix-cdb
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, postfix (= ${binary:Version})
Description: CDB map support for Postfix
 ${Description}
 .
 This provides support for CDB (constant database) maps in Postfix. If you
 plan to use CDB maps with Postfix, you need this.

the source tree also has debian/vars.in:

Description=Postfix is Wietse Venema's mail transport agent that started life as an${Newline} alternative to the widely-used Sendmail program.
  Postfix attempts to${Newline} be fast, easy to administer, and secure, while at the same time being${Newline} sendmail compatible enough to
not upset existing users. Thus, the outside${Newline} has a sendmail-ish flavor, but the inside is completely different.


vars.in is added, at build time to debian/substvars. This is used by
deb-substvars(5). From this package's manpage:

       Additionally, the following standard variables are available:
.../...
      Newline, Space, Tab
              These variables each hold the corresponding character.


The problem, here, is that, apparently ${Newline} gets expanded 
to "\n " and not "\n".

So, if there's a bug, it is in dpkg....



Attachment: signature.asc
Description: Digital signature


Reply to: