Skip to content

Commit 4fe8e3a

Browse files
committed
try again
1 parent 070a9ac commit 4fe8e3a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: src/nimib/blocks.nim

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ func nbNormalize*(text: string): string =
1717
# note that: '\c' == '\r' and '\l' == '\n'
1818

1919
template newNbBlock*(cmd: string, readCode: static[bool], nbDoc, nbBlock, body, blockImpl: untyped) =
20-
# stdout.write "[nimib] ", nbDoc.blocks.len, " ", cmd, ": "
20+
stdout.write "[nimib] ", nbDoc.blocks.len, " ", cmd, ": "
2121
nbBlock = NbBlock(command: cmd, context: newContext(searchDirs = @[], partials = nbDoc.partials))
2222
when readCode:
2323
nbBlock.code = nbNormalize:
2424
when defined(nimibCodeFromAst):
2525
toStr(body)
2626
else:
2727
getCodeAsInSource(nbDoc.source, cmd, body)
28-
# echo peekFirstLineOf(nbBlock.code)
28+
echo peekFirstLineOf(nbBlock.code)
2929
blockImpl
30-
# if len(nbBlock.output) > 0: echo " -> ", peekFirstLineOf(nbBlock.output)
30+
if len(nbBlock.output) > 0: echo " -> ", peekFirstLineOf(nbBlock.output)
3131
nbBlock.context["code"] = nbBlock.code
3232
nbBlock.context["output"] = nbBlock.output.dup(removeSuffix)
3333
nbDoc.blocks.add nbBlock

Diff for: tests/tblocks.nim

+2
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ suite "newNbBlock":
2525
let b = 3.21
2626
check blk.code == ""
2727

28+
fail()
29+
2830

0 commit comments

Comments
 (0)