cleanup
parent
04c7258457
commit
ea5bf34621
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue