This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>To: address@hidden >cc: address@hidden >From: Willie Kantrowitz <address@hidden> >Subject: ncdump printing of multi-line global attributes >Organization: MIT >Keywords: 200201251855.g0PItXx02262 ncdump global attributes Hi again Willie, ... > This is an annoyance. I would hope/expect that it would not be too > difficult to correct, especially since ncdump already knows to do a > small indentation for continuation lines. > > (While I have not tried it, I assume the same indentation scheme is used > for printing attributes of variables. A similar correction should hold > there too.) It's a one-line change, so if you want to make it to your own ncdump before the next release, I've appended a context diff to src/ncdump.c. --Russ diff -c -r1.9 ncdump.c *** ncdump.c 2000/08/24 20:40:17 1.9 --- ncdump.c 2002/01/27 19:44:28 *************** *** 176,182 **** Printf ("\\f"); break; case '\n': /* generate linebreaks after new-lines */ ! Printf ("\\n\",\n \""); break; case '\r': Printf ("\\r"); --- 176,182 ---- Printf ("\\f"); break; case '\n': /* generate linebreaks after new-lines */ ! Printf ("\\n\",\n\t\t\t\""); break; case '\r': Printf ("\\r");