summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-08 10:08:52 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-11-08 20:52:22 +0100
commit4f787ac4f4d4bf16fe5cde032dfd909756ebc972 (patch)
tree745138f4c91887c7ddc0eada11cf5b44120642b4 /lib/std
parent13defcc9f6bd2e0f56a03e63d0d713d5f6b60d6d (diff)
downloadNim-4f787ac4f4d4bf16fe5cde032dfd909756ebc972.tar.gz
fill region
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/wordwrap.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/std/wordwrap.nim b/lib/std/wordwrap.nim
index 3e3a4609c..85cde6f0d 100644
--- a/lib/std/wordwrap.nim
+++ b/lib/std/wordwrap.nim
@@ -5,8 +5,10 @@ proc wordWrap*(s: string, maxLineWidth = 80,
                newLine = "\n"): string  =
   ## This function breaks all words that reach over `maxLineWidth`
   ## measured in number of runes. When `splitLongWords` is `true`
-  ## words that are longer than `maxLineWidth` are splitted. Multiple spaces and newlines are converted to a single space. All
-  ## whitespace is treated equally. Non-breaking whitespace is ignored.
+  ## words that are longer than `maxLineWidth` are splitted. Multiple
+  ## spaces and newlines are converted to a single space.  All
+  ## whitespace is treated equally.  Non-breaking whitespace is
+  ## ignored.
 
   var currentWordLength: int = 0
   var currentWord: string = newStringOfCap(32)