The @example tag should trim the last line break even if it is the last tag.
For example, the following two tags sets:
/**
* My test stuff.
* @example
* // Source code here 1
*/
var sample1 = function()
{
}
/**
* My test stuff.
* @example
* // Source code here 2
* @since 1.0
*/
var sample2 = function()
{
}
The first one will display a blank line in the example, while the second
one will properly display the code.
The following is the HTML generated for the above examples:
<pre class="code">// Source code here 1
</pre>
<pre class="code">// Source code here 2</pre>
Original issue reported on code.google.com by fre...@gmail.com on 7 Jun 2008 at 4:04
Original issue reported on code.google.com by
fre...@gmail.com
on 7 Jun 2008 at 4:04