Changeset 2127

Show
Ignore:
Timestamp:
06/16/09 22:15:30 (15 months ago)
Author:
drobilla
Message:

Pretty.

Location:
trunk/lv2specgen
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lv2specgen/lv2specgen.py

    r2125 r2127  
    428428        label, comment = get_rdfs(m, term)     
    429429        status = get_status(m, term) 
     430        if label!='' or comment != '': 
     431            doc += '<div class="description">' 
    430432        if label!='': 
    431             doc += "<span property=\"rdfs:label\" class=\"subtitle\">%s</span>" % label 
     433            doc += "<div property=\"rdfs:label\" class=\"label\">%s</div>" % label 
    432434        if comment!='': 
    433                         doc += "<p property=\"rdfs:comment\">%s</p>" % comment 
     435                        doc += "<div property=\"rdfs:comment\">%s</div>" % comment 
     436        if label!='' or comment != '': 
     437            doc += "</div>" 
    434438        terminfo = "" 
    435439        if category=='Property': 
  • trunk/lv2specgen/template.html

    r2126 r2127  
    3030h1, h2, h3 { color: #005A9C; } 
    3131 
    32 .subtitle { margin: 0; padding: 0; font-style: italic } 
     32.label { font-style: italic; margin-bottom: 0.5ex; } 
    3333.index { padding: 1ex; border: dotted 2px gray; background-color: #eee; } 
    3434.restriction { margin-bottom: 2ex; padding: 0; } 
     35.description { margin-bottom: 2ex; } 
    3536 
    3637dl { padding: 0; margin: 0 }