Skip to content

Commit 4959a98

Browse files
committed
Undo comment whitespace change
1 parent 422e3dd commit 4959a98

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/lib/converter/factories/comment.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ export function parseComment(text: string, comment: Comment = new Comment()): Co
119119
return line.trim();
120120
}
121121

122-
function readBareLine(line: string, rawLine: string) {
122+
function readBareLine(line: string) {
123123
if (currentTag) {
124-
currentTag.text += '\n' + rawLine;
124+
currentTag.text += '\n' + line;
125125
} else if (line === '' && shortText === 0) {
126126
// Ignore
127127
} else if (line === '' && shortText === 1) {
@@ -161,15 +161,14 @@ export function parseComment(text: string, comment: Comment = new Comment()): Co
161161
}
162162

163163
function readLine(line: string) {
164-
const rawLine = line;
165164
line = line.replace(/^\s*\*? ?/, '');
166165
line = line.replace(/\s*$/, '');
167166

168167
const tag = /^@(\S+)/.exec(line);
169168
if (tag) {
170169
readTagLine(line, tag);
171170
} else {
172-
readBareLine(line, rawLine);
171+
readBareLine(line);
173172
}
174173
}
175174

src/test/renderer/specs/enums/_enumerations_.size.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h2>Variables</h2>
158158
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-enum">
159159
<a name="defaultsize" class="tsd-anchor"></a>
160160
<h3>default<wbr>Size</h3>
161-
<div class="tsd-signature tsd-kind-icon">default<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Size.Small</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Medium</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Large</span><span class="tsd-signature-symbol"> =&nbsp;Size.Medium</span></div>
161+
<div class="tsd-signature tsd-kind-icon">default<wbr>Size<span class="tsd-signature-symbol">:</span> <a href="_enumerations_.size.html" class="tsd-signature-type">Size</a><span class="tsd-signature-symbol"> =&nbsp;Size.Medium</span></div>
162162
<aside class="tsd-sources">
163163
<ul>
164164
<li>Defined in <a href="https://github.com/sebastian-lenz/typedoc/blob/master/examples/basic/src/enumerations.ts#L70">enumerations.ts:70</a></li>
@@ -177,7 +177,7 @@ <h2>Functions</h2>
177177
<a name="issmall" class="tsd-anchor"></a>
178178
<h3>is<wbr>Small</h3>
179179
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-enum">
180-
<li class="tsd-signature tsd-kind-icon">is<wbr>Small<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Size.Small</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Medium</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Large</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
180+
<li class="tsd-signature tsd-kind-icon">is<wbr>Small<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="_enumerations_.size.html" class="tsd-signature-type">Size</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
181181
</ul>
182182
<ul class="tsd-descriptions">
183183
<li class="tsd-description">
@@ -194,7 +194,7 @@ <h3>is<wbr>Small</h3>
194194
<h4 class="tsd-parameters-title">Parameters</h4>
195195
<ul class="tsd-parameters">
196196
<li>
197-
<h5>value: <span class="tsd-signature-type">Size.Small</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Medium</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Size.Large</span></h5>
197+
<h5>value: <a href="_enumerations_.size.html" class="tsd-signature-type">Size</a></h5>
198198
<div class="tsd-comment tsd-typography">
199199
<p>The value that should be tested.</p>
200200
</div>

0 commit comments

Comments
 (0)