docs should build under doc2; unittests of times.nim compile under 32bit; small bugfix for the tester
This commit is contained in:
parent
3d40842088
commit
c4b7a3e545
2 changed files with 9 additions and 6 deletions
|
|
@ -56,7 +56,8 @@ proc extractSpec(filename: string): string =
|
|||
var x = readFile(filename).string
|
||||
var a = x.find(tripleQuote)
|
||||
var b = x.find(tripleQuote, a+3)
|
||||
if a >= 0 and b > a:
|
||||
# look for """ only in the first section
|
||||
if a >= 0 and b > a and a < 40:
|
||||
result = x.substr(a+3, b-1).replace("'''", tripleQuote)
|
||||
else:
|
||||
#echo "warning: file does not contain spec: " & filename
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue