File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/lib/converter/factories Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ export function parseComment(text: string, comment: Comment = new Comment()): Co
119
119
return line . trim ( ) ;
120
120
}
121
121
122
- function readBareLine ( line : string ) {
122
+ function readBareLine ( line : string , rawLine : string ) {
123
123
if ( currentTag ) {
124
- currentTag . text += '\n' + line ;
124
+ currentTag . text += '\n' + rawLine ;
125
125
} else if ( line === '' && shortText === 0 ) {
126
126
// Ignore
127
127
} else if ( line === '' && shortText === 1 ) {
@@ -161,14 +161,15 @@ export function parseComment(text: string, comment: Comment = new Comment()): Co
161
161
}
162
162
163
163
function readLine ( line : string ) {
164
+ const rawLine = line ;
164
165
line = line . replace ( / ^ \s * \* ? ? / , '' ) ;
165
166
line = line . replace ( / \s * $ / , '' ) ;
166
167
167
168
const tag = / ^ @ ( \S + ) / . exec ( line ) ;
168
169
if ( tag ) {
169
170
readTagLine ( line , tag ) ;
170
171
} else {
171
- readBareLine ( line ) ;
172
+ readBareLine ( line , rawLine ) ;
172
173
}
173
174
}
174
175
You can’t perform that action at this time.
0 commit comments