From fc9ef9d18c52b651a6994b34d1a6c37640dfaef2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 31 May 2007 12:14:02 +0000 Subject: [PATCH] Using informaltable rather than table for list of Object Identifiers. This is to avoid truncation of the (long) table. Combine OID and Constant into one column. --- src/oidtoc.tcl | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/oidtoc.tcl b/src/oidtoc.tcl index 2cbe66e..87443e1 100644 --- a/src/oidtoc.tcl +++ b/src/oidtoc.tcl @@ -2,7 +2,7 @@ # Copyright (c) Index Data 2006-2007 # See the file LICENSE for details. # -# $Id: oidtoc.tcl,v 1.7 2007-05-08 08:22:36 adam Exp $ +# $Id: oidtoc.tcl,v 1.8 2007-05-31 12:14:02 adam Exp $ # # Converts a CSV file with Object identifiers to C @@ -47,19 +47,16 @@ proc oid_to_xml {srcdir input xname} { set xfile [open "${xname}" w] puts $xfile "" - puts $xfile {} - puts $xfile {Standard Object Identifiers} - puts $xfile {} + puts $xfile {} + puts $xfile {} puts $xfile {} puts $xfile {} - puts $xfile {} - puts $xfile {} + puts $xfile {} puts $xfile {} puts $xfile {} puts $xfile {Name} puts $xfile {Class} - puts $xfile {Constant} - puts $xfile {OID} + puts $xfile {Constant / OID} puts $xfile {} puts $xfile {} puts $xfile {} @@ -67,12 +64,12 @@ proc oid_to_xml {srcdir input xname} { foreach oid $oids { puts $xfile {} - puts $xfile {} + puts $xfile {} puts $xfile [lindex $oid 2] puts $xfile {} - puts $xfile {} + puts $xfile {} puts $xfile [lindex $oid 0] puts $xfile {} @@ -81,7 +78,11 @@ proc oid_to_xml {srcdir input xname} { puts $xfile $v puts $xfile {} - puts $xfile {} + + puts $xfile {} + puts $xfile {} + + puts $xfile {} puts $xfile [lindex $oid 1] puts $xfile {} @@ -91,7 +92,7 @@ proc oid_to_xml {srcdir input xname} { puts $xfile {} puts $xfile {} - puts $xfile {
} + puts $xfile {} close $xfile } -- 1.7.10.4