comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephe.Leake@nasa.gov>
Subject: Grace.Config_Files comment preserving details
Date: 27 Jun 2003 09:03:19 -0400
Date: 2003-06-27T13:03:48+00:00	[thread overview]
Message-ID: <ud6gzu0yw.fsf@nasa.gov> (raw)

(See
http://java.sun.com/j2se/1.4.1/docs/api/java/util/Properties.html,
"load" method, and http://www.nongnu.org/Grace/config_files.html)

The Java Properties definition doesn't say anything about preserving
comments when writing the file. The current Config_Files requirement
says comments are preserved, but isn't detailed enough to say how it
works. David Koogler proposed some details, and I've added more,
to get the following proposed requirement:

    Comments are associated with a key, and are preserved thru open
    and flush. Comments are intended to guide manually editing the
    file. Consecutive whole line comments appearing before a key are
    associated with that key, and are written to the file in the same
    form as they were read in. Whole line comments separated by blank
    lines from any following key do not associate and are lost during
    writing.

(David also wants comments on the same line as a key/value pair, but
I've deleted that here).

Discussion?

-- 
-- Stephe



                 reply	other threads:[~2003-06-27 13:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox