Tk Library Source Code

View Ticket
Login
Ticket UUID: 1800344
Title: Extra <br> tags before new definition list
Type: Bug Version: None
Submitter: sdeasey Created on: 2007-09-22 20:09:31
Subsystem: doctools Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-04-28 11:28:47
Resolution: Accepted Closed By: andreas_kupries
    Closed on: 2008-04-28 04:28:47
Description:

Using tcllib from cvs HEAD.



Here's some markup:

[call [cmd ns_limits_get] [arg limit]]

Get the current configuration options and accumulated runtime statistics for
the named limits bundle. The result is a list in Tcl array-get format which
can be used, for example, to initialise a hash table.

[list_begin definitions]

[lst_item nrunning]
The number of connections currently running with a URL which is mapped to
this limit bundle.



Here's the HTML output:

<dt><a name="2"><b class='cmd'>ns_limits_get</b> <i class='arg'>limit</i></a></dt><dd>


Get the current configuration options and accumulated runtime statistics for
the named limits bundle. The result is a list in Tcl array-get format which
can be used, for example, to initialise a hash table.


</p><br><br>
<dl>

<dt>nrunning</dt><dd>
The number of connections currently running with a URL which is mapped to
this limit bundle.



There is a an extra pair of <br><br> tags between the closing </p> and opening <dl> which is throwing the formatting off.
User Comments: andreas_kupries added on 2008-04-28 11:28:47:
Logged In: YES 
user_id=75003
Originator: NO

Well, the br's have been yanked out, ditto the undocumented 'compact' hint. The argument is still accepted from manpages using it, but ignored. Any spacing has to be done through CSS now.

andreas_kupries added on 2007-09-26 04:21:17:
Logged In: YES 
user_id=75003
Originator: NO

These br's are gone if you write [list_begin definitions compact].
Not documented tough. And I do not remember why it was added.
Ah ... ChangeLog:

2002-04-01  Andreas Kupries  <[email protected]>

* Committed changes to list generation (better generation of
  whitespace for HTML, allowing hints). Only the HTML formatter
  currently acknowledges hints. This fixes SF Bug #535382.

Link to that report:

http://sourceforge.net/tracker/index.php?func=detail&aid=535382&group_id=12883&atid=112883

Do you have additional comments regarding this and the old report ? Is that something we could fix by using proper classes for list begin/end and items, so that a CSS can then influence the spacing instead ?