File tree 2 files changed +25
-3
lines changed
e2e/suite/testcases/documentation
2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -275,15 +275,19 @@ export function extractCommentsDoc(node: Node): string {
275
275
result += "\n"
276
276
}
277
277
278
+ if ( isList ) {
279
+ result += "\n"
280
+ }
281
+
278
282
result += line
279
283
280
- if ( insideCodeBlock || isCodeBlock || isTable ) {
284
+ if ( insideCodeBlock || isCodeBlock || isTable || isList ) {
281
285
result += "\n"
282
286
}
283
287
284
- if ( ( isEndOfSentence || isList || isHeader ) && ! insideCodeBlock ) {
288
+ if ( ( isEndOfSentence || isHeader ) && ! insideCodeBlock ) {
285
289
result += "\n\n"
286
- } else if ( ! insideCodeBlock && ! isCodeBlock ) {
290
+ } else if ( ! insideCodeBlock && ! isCodeBlock && ! isList ) {
287
291
result += " "
288
292
}
289
293
Original file line number Diff line number Diff line change @@ -158,8 +158,26 @@ fun example() {
158
158
```
159
159
See:
160
160
161
+
161
162
* https://docs.tact-lang.org/ref/core-advanced#getoriginalfwdfee
162
163
163
164
* https://docs.tact-lang.org/ref/core-advanced#getforwardfee
164
165
165
166
* https://docs.tact-lang.org/ref/core-advanced#contextreadforwardfee
167
+
168
+ ========================================================================
169
+ Function documentation with list
170
+ ========================================================================
171
+ /// Some interesting list
172
+ /// - Point 1
173
+ /// with other line
174
+ /// - Point 2
175
+ fun <caret>foo(): Int {}
176
+ ------------------------------------------------------------------------
177
+ ```tact
178
+ fun foo(): Int
179
+ ```
180
+ Some interesting list
181
+ - Point 1
182
+ with other line
183
+ - Point 2
You can’t perform that action at this time.
0 commit comments