Am 26.10.2012 09:31, schrieb rene:
> If I use your code from above the line breaks still exist in the displayed code.
> May be you have tested with some other code?
Modified the code to:
proc foo {} {
return
}
proc bar {} {
foo
foo
foo
foo
return
}
Then used SOURCE_BROWSER = YES and INLINE_SOURCES = YES.
The inlined code results in the following html:
...
<p>Definition at line <a class="el"
href="t_8tcl_source.html#l00004">4</a> of file <a class="el"
href="t_8tcl_source.html">t.tcl</a>.</p>
<div class="fragment"></div>
<span class="keyword">proc</span> bar {} {</div>
<a class="code" href="t_8tcl.html#afdba98970961edb29f88241b9d99d890"
title="foo">foo</a><span class="comment"></div>
</span> <a class="code"
href="t_8tcl.html#afdba98970961edb29f88241b9d99d890"
title="foo">foo</a><span class="comment"></div>
</span> <a class="code"
href="t_8tcl.html#afdba98970961edb29f88241b9d99d890"
title="foo">foo</a><span class="comment"></div>
</span> <a class="code"
href="t_8tcl.html#afdba98970961edb29f88241b9d99d890"
title="foo">foo</a><span class="comment"></div>
</span> <span class="keyword">return</span><span class="comment"></div>
</span>}</div><!-- fragment -->
...
It looks like there are more </div> than <div>. The last to foo calls,
the return and the closing brace are on the same line.
> You could use INLINE_SOURCES and SOURCE_BROWSER in any combination.
> At least one of them need to set to YES.
If I use SOURCE_BROWSER = YES and INLINE_SOURCES = NO then
I definitely do not get the call graph. I do get the source browser.
wts