diff options
author | Hans Raaf <hara@oderwat.de> | 2015-03-04 03:30:43 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-03-04 03:30:43 +0100 |
commit | 58186f6c1d5e22efcf8f384af2feefbedab7c365 (patch) | |
tree | 4bf717405b6e1fbb21acffb11dd7eda768d75dca /lib/packages/docutils/rstgen.nim | |
parent | 8f43979cf6308c9d7e14a0d87c0faf227e1c4afe (diff) | |
download | Nim-58186f6c1d5e22efcf8f384af2feefbedab7c365.tar.gz |
Replaced deprecated repeatChar() with repeat() or spaces().
Diffstat (limited to 'lib/packages/docutils/rstgen.nim')
-rw-r--r-- | lib/packages/docutils/rstgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim index e1e590877..f921f2557 100644 --- a/lib/packages/docutils/rstgen.nim +++ b/lib/packages/docutils/rstgen.nim @@ -701,7 +701,7 @@ proc renderHeadline(d: PDoc, n: PRstNode, result: var string) = # Generate index entry using spaces to indicate TOC level for the output HTML. assert n.level >= 0 setIndexTerm(d, refname, tmp.stripTOCHTML, - repeatChar(max(0, n.level), ' ') & tmp) + spaces(max(0, n.level)) & tmp) proc renderOverline(d: PDoc, n: PRstNode, result: var string) = if d.meta[metaTitle].len == 0: |