| Ticket UUID: | 2557107 | |||
| Title: | dtplite seems to insist on presence of keywords | |||
| Type: | Bug | Version: | None | |
| Submitter: | apnadkarni | Created on: | 2009-02-02 14:26:24 | |
| Subsystem: | doctools | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-02-11 05:59:18 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2009-02-10 22:59:18 | |||
| Description: |
I have a simple test file as follows:
----
[manpage_begin "test" "n" "0.0"]
[copyright {2009 "Ashok"}]
[moddesc "sample"]
[description]
[manpage_end]
----
If I place it in a directory, say doc, and run the command
tclsh86 C:\bin\Tcl86\bin\dtplite.tcl -o doc html doc
the following error is spit out:
C:\bin\Tcl86\bin\dtplite.tcl: Docidx Error in macro at line 2, column 0:
[index_end]
--> (FmtError) IDX error (idx/endcmd), "index_end" : Command not allowed here..
Adding a [keywords foo] to the above file fixes the error.
Keywords should be always required. Note that running the command
tclsh86 C:\bin\Tcl86\bin\dtplite.tcl -o test.html html test.man
(where test.man is the above file) works fine.
/Ashok
| |||
| User Comments: |
andreas_kupries added on 2009-02-11 05:59:18:
allow_comments - 1 andreas_kupries added on 2009-02-11 05:59:17: Fixed in CVS head. doctools::idx now accepts an empty index (only index_begin and index_end keywords). dtplite will pick that up automatically when the new version of this package is installed. andreas_kupries added on 2009-02-03 00:49:10: Did you possibly mean 'Keywords should _not_ be always required' ? The error is indirect. In the multi-file modes (like when processing a directory) dtplite will generate TOC and INDEX pages, using doctoc and docidx formats. The docidx format doesn't allow an empty index, so, if no page has keywords this error is triggered. If even one of the pages to be processed has keywords nothing happens. If dtplite is ordered to process only a single page then neither TOC nor INDEX are made, so the problem cannot occur then either. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki