mryozo16 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

@example should trim the last line break #153

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Committed in revision 622.

Original comment by micmath on 7 Jun 2008 at 4:24