File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,18 @@ function __toString()
140140 $ type = (!in_array ($ this ->type , $ this ->defaults )) ?
141141 '<a class="code" href="#object- ' . $ this ->type . '"> ' . $ this ->type . '</a> ' : '<code> ' .$ this ->type .'</code> ' ;
142142
143- $ value = (empty ($ this ->value )) ?
144- '<s class="pull-right">no example</s> ' : '<blockquote>Example: ' . $ this ->value . '</blockquote> ' ;
143+ if (empty ($ this ->value ))
144+ {
145+ $ value = '<s class="pull-right">no example</s> ' ;
146+ }
147+ else if (self ::class === get_class ($ this ->value ))
148+ {
149+ $ value = '<div class="sub-struct"> ' .$ this ->value .'</div> ' ;
150+ }
151+ else {
152+ $ value = '<span class="pull-right">Example: ' . $ this ->value . '</span> ' ;
153+ }
154+
145155 $ return =
146156 '<dt> ' .
147157 '<span> ' . $ this ->key . "</span> " .
Original file line number Diff line number Diff line change @@ -95,8 +95,10 @@ body .col-md-10 h2:first-of-type {
9595
9696.row dl .dl-horizontal dt {
9797 width : 80px ;
98+ line-height : 30px ;
9899}
99100.row dl .dl-horizontal dd {
101+ line-height : 30px ;
100102 margin-left : 100px ;
101103}
102104
File renamed without changes.
You can’t perform that action at this time.
0 commit comments