nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
01bd5ab
)
src/doc_down: fix `comment` behavior
author
Alexandre Terrasa
<alexandre@moz-code.org>
Tue, 29 Aug 2017 23:52:54 +0000
(19:52 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Thu, 28 Sep 2017 22:39:32 +0000
(18:39 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/doc/doc_down.nit
patch
|
blob
|
history
diff --git
a/src/doc/doc_down.nit
b/src/doc/doc_down.nit
index
dbb5252
..
eedfdf6
100644
(file)
--- a/
src/doc/doc_down.nit
+++ b/
src/doc/doc_down.nit
@@
-28,7
+28,7
@@
redef class MDoc
var comment: String is lazy do
var lines = content.to_a
if not lines.is_empty then lines.shift
var comment: String is lazy do
var lines = content.to_a
if not lines.is_empty then lines.shift
- return content.join("\n")
+ return lines.join("\n")
end
# Full comment HTML escaped.
end
# Full comment HTML escaped.