commit-womb
[Top][All Lists]
Advanced

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

Re: [commit-womb] gnumaint/rec gnupackages2txt.awk


From: Mike Gerwitz
Subject: Re: [commit-womb] gnumaint/rec gnupackages2txt.awk
Date: Fri, 24 Aug 2018 18:57:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Ineiev:

Thanks, and sorry if this caused you issues.

On Wed, Aug 22, 2018 at 08:26:02 -0400, Ineiev wrote:
>  #  Copyright (C) 2018 Mike Gerwitz

Be sure to add a Copyright line for yourself as well!

> @@ -26,6 +26,12 @@
>  }
>  
>  {
> +    if ( ( substr( $1, 1, 1 ) == "+" ) && ( key != "" ) ) {
> +        # next line of a multiline record
> +        sub( /^[+] */, "", $0 )
> +        add_key( key, $0 )
> +        next
> +    }
>      key   = is_key() ? $1 : ""
>      value = $2
>  }

Was the only instance of this the ncurses package?  That looks to be the
case for me, in which case should work as expected (outputs multiple
"note" lines).

Was this causing a problem with HTML output?  I just want to be aware of
all potential issues, since I eventually hope to update the scripts such
that gnupackges.txt won't be needed anymore.

No need to change it, but this is another way to make the same change:

    /^+/ && key {
        # next line of a multiline record
        sub( /^\+ */, "", $0 )
        add_key( key, $0 )
        next
    }

-- 
Mike Gerwitz

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]