I am just getting started with coda 2.1 on RedHat Linux
7.2 and 7.3, and it does not seem to generate
documentation correctly, for example on its own source.
For example, I tried the following small TCL file (cut and
paste from coda source):
##
# HtmlOut::BeginProject --- begins a new project
#
# SYNOPSIS
# [HtmlOut::BeginProject ?<options>?]
#
# DESCRIPTION
# Begins a new docify project, and creates a new
directory for the
# output if necessary. Valid options are:
#
# -[-dir]:
# Specifies the output directory. The dafault value
is "doc".
##
Running coda 2.1 on this produced run-on headers and
an index.hmtl that had an extra $ in the file names.
I came up with the following patch.
==========================
RCS file: /cvsroot/coda/source/CodaText.tcl,v
retrieving revision 1.18
diff -r1.18 CodaText.tcl
634c634,638
< set indent [regexp -all {^ } [string map {"\t" " "} $line]]
---
> #set indent [regexp -all {^ } [string map {"\t" " "} $line]]
> set indent 0
> if {[regexp {^ +} [string map {"\t" " "} $line] indenttext]}
{
> set indent [string length $indenttext]
> }
890c894
< }
\ No newline at end of file
---
> }
Index: source/HtmlOut.tcl
=========================================
==========================
RCS file: /cvsroot/coda/source/HtmlOut.tcl,v
retrieving revision 1.24
diff -r1.24 HtmlOut.tcl
183c183
< WriteMainFile [lindex $[lsort -dictionary
$tableOfContents] 0]
---
> WriteMainFile [lindex [lsort -dictionary
$tableOfContents] 0]
Is anyone out there using coda 2.1 successfully on
RedHat Linux 7.2 or 7.3?