| Ticket UUID: | 1800411 | |||
| Title: | Missing CSS class names | |||
| Type: | Bug | Version: | None | |
| Submitter: | sdeasey | Created on: | 2007-09-23 01:00:01 | |
| Subsystem: | doctools | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2008-04-23 02:52:00 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2008-04-22 19:52:00 | |||
| Description: |
The following doctools markup: [cmd ns_logctl] [arg hold] Produces the following HTML: <b class='cmd'>ns_logctl</b> <i class='arg'>hold</i> Which is good. However, many of the other doctools macros don't include CSS class names. For example, fun, type, const and method all produce <strong>, no class name. Should the rule for basic, non-structural doctools macros be that the name of the macro becomes the CSS class? [fun function]: <strong class="fun">function</strong> (btw. cmd produces <b> whereas fun produces <strong>. I'm not sure there's a lot of extra symantic info in <strong>, but for consistency, maybe they should be the same?) | |||
| User Comments: |
andreas_kupries added on 2008-04-23 02:52:00:
Logged In: YES user_id=75003 Originator: NO The cvs head of tcllib doctools should have class names for all the semantic markup now, and span where classes where not possible, so I am closing this one. If there are classes/ids/spans/divs missing please open a new bug for them specifically, or put the notice into http://sourceforge.net/tracker/index.php?func=detail&aid=1798427&group_id=12883&atid=112883, the general bug about HTML output and its styling (while it is open). andreas_kupries added on 2007-09-27 00:46:57: Logged In: YES user_id=75003 Originator: NO Thanks, that makes it clear. sdeasey added on 2007-09-27 00:32:45: Logged In: YES user_id=87254 Originator: YES A <div> is a block-level element. Like a <p> or <ul>, it begins a new line, and the content following it begins on a new line. A <span> is an inline element, like <b> and <i>. So in this case you need a span, because it needs to appear inline with the rest of the arguments and options. andreas_kupries added on 2007-09-27 00:25:01: Logged In: YES user_id=75003 Originator: NO Re [opt]. Yeah, could be done. Question. Rockshox asked to add <div>'s around things. Now here you are saying <span>. What is the difference between both ? Or, in the concrete case of [opt], could a <div> be used instead of <span> ? how interchangeable are they ? sdeasey added on 2007-09-27 00:18:17: Logged In: YES user_id=87254 Originator: YES This seems to cover at least the markup I've used so far. Great, thanks. I did notice that the [opt ...] macro doesn't output any HTML tags, just surrounds it's argument with ?...? pairs. Can this also have an HTML tag? So, this code: [opt [option "-maxrun [arg n]"]] Which results in this HTML: ?<b class='option'>-maxrun <i class='arg'>n</i></b>? Should instead produce this: <span class="opt">?<b class='option'>-maxrun <i class='arg'>n</i></b>?</span> i.e. wrap the whole thing in a span with CSS class opt. andreas_kupries added on 2007-09-26 04:21:20: Logged In: YES user_id=75003 Originator: NO Fixed in cvs head. Not sure if I got everything. One of the other bugs you reported seems to suggesst (implicitly) that we should add classes to list start/item/end as well. That I have not touched. Not yet done either is documentation for the class names in use in the output. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki