pull/13894/head
Nick Treleaven 2022-04-01 17:18:48 +01:00
parent 04c7258457
commit ea5bf34621
1 changed files with 0 additions and 3 deletions

View File

@ -87,13 +87,11 @@ pub fn (dn DocNode) examples() []string {
output << comment.example() output << comment.example()
} else if comment.is_multi_line_example() { } else if comment.is_multi_line_example() {
mut j := i + 1 mut j := i + 1
//~ comments = dn.comments
mut ml_ex := '' mut ml_ex := ''
if j + 2 < dn.comments.len && dn.comments[j].has_triple_backtick() if j + 2 < dn.comments.len && dn.comments[j].has_triple_backtick()
{ {
j++ j++
for j < dn.comments.len && !dn.comments[j].has_triple_backtick() { for j < dn.comments.len && !dn.comments[j].has_triple_backtick() {
//~ println(dn.comments[j].text)
if ml_ex.len > 0 { if ml_ex.len > 0 {
ml_ex += '\n' ml_ex += '\n'
} }
@ -101,7 +99,6 @@ pub fn (dn DocNode) examples() []string {
if s.len > 2 { ml_ex += s[2..] } if s.len > 2 { ml_ex += s[2..] }
j++ j++
} }
println(ml_ex)
output << ml_ex output << ml_ex
break break
} }