diff options
author | dan <dan@noemail.net> | 2015-07-10 17:55:42 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-07-10 17:55:42 +0000 |
commit | 3eb9024d68e70fd3a5816f17c2e293c922d37de2 (patch) | |
tree | d153d48b3435fc0bd980ec9e9a7ff564ff0b5173 /ext/fts5/extract_api_docs.tcl | |
parent | d2454f47e768a980799b5efe005bb3f535bc8470 (diff) | |
download | sqlite-3eb9024d68e70fd3a5816f17c2e293c922d37de2.tar.gz sqlite-3eb9024d68e70fd3a5816f17c2e293c922d37de2.zip |
Fix inconsistencies in formatting of fts5 docs.
FossilOrigin-Name: 5fb4c77163be8d5ff1e2934dda3cc2ad0a6267e8
Diffstat (limited to 'ext/fts5/extract_api_docs.tcl')
-rw-r--r-- | ext/fts5/extract_api_docs.tcl | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/ext/fts5/extract_api_docs.tcl b/ext/fts5/extract_api_docs.tcl index 27f136a99..afb2699be 100644 --- a/ext/fts5/extract_api_docs.tcl +++ b/ext/fts5/extract_api_docs.tcl @@ -134,6 +134,7 @@ proc get_api_docs {data} { # set D [get_struct_docs $data [array names M]] + output "<dl>" foreach {sub docs} $D { if {[info exists M($sub)]} { set hdr $M($sub) @@ -142,12 +143,17 @@ proc get_api_docs {data} { set link "" } - output "<hr color=#eeeee style=\"margin:1em 8.4ex 0 8.4ex;\"$link>" - set style "padding-left:6ex;font-size:1.4em;display:block" - output "<h style=\"$style\"><pre>$hdr</pre></h>" + #output "<hr color=#eeeee style=\"margin:1em 8.4ex 0 8.4ex;\"$link>" + #set style "padding-left:6ex;font-size:1.4em;display:block" + #output "<h style=\"$style\"><pre>$hdr</pre></h>" + + regsub -line {^ *[)]} $hdr ")" hdr + output "<dt style=\"white-space:pre;font-family:monospace;font-size:120%\"" + output "$link>" + output "<b>$hdr</b></dt><dd>" set mode "" - set bEmpty 1 + set margin " style=margin-top:0.1em" foreach line [split [string trim $docs] "\n"] { if {[string trim $line]==""} { if {$mode != ""} {output "</$mode>"} @@ -158,12 +164,15 @@ proc get_api_docs {data} { } else { set mode p } - output "<$mode>" + output "<$mode$margin>" + set margin "" } output $line } if {$mode != ""} {output "</$mode>"} + output "</dd>" } + output "</dl>" } proc get_fts5_struct {data start end} { |