Update to reflect stdlib changes in Nim 1.2

This commit is contained in:
Jonathan Bernard 2020-07-06 11:17:56 -05:00
parent 9de8a39d9e
commit a58c7923cb
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
const PTK_VERSION* = "1.0.5"
const PTK_VERSION* = "1.0.6"

View File

@ -3,8 +3,8 @@
##
## Simple time keeping CLI
import algorithm, docopt, json, langutils, logging, os, nre, sequtils,
sets, strutils, tempfile, terminal, times, uuids
import algorithm, docopt, json, langutils, logging, os, nre, std/wordwrap,
sequtils, sets, strutils, tempfile, terminal, times, uuids
import timeutils except `-`;
@ -98,7 +98,7 @@ proc writeMarks(timeline: Timeline, indices: seq[int], includeNotes = false): vo
if includeNotes and len(w.mark.notes.strip) > 0:
writeLine(stdout, "")
let wrappedNotes = wordWrap(s = w.mark.notes,
let wrappedNotes = wrapWords(s = w.mark.notes,
maxLineWidth = colWidth)
for line in splitLines(wrappedNotes):
writeLine(stdout, spaces(notesPrefixLen) & line)

View File

@ -1,6 +1,6 @@
# Package
version = "1.0.5"
version = "1.0.6"
author = "Jonathan Bernard"
description = "Personal Time Keeper"
license = "MIT"