Add 'dedent' to documentation index (#9615)

This commit is contained in:
Federico Ceratto 2018-11-04 07:36:13 +00:00 • committed by Andreas Rumpf
commit 62693457df

View file

@ -1262,6 +1262,7 @@ proc indent*(s: string, count: Natural, padding: string = " "): string
proc unindent*(s: string, count: Natural, padding: string = " "): string proc unindent*(s: string, count: Natural, padding: string = " "): string
{.noSideEffect, rtl, extern: "nsuUnindent".} = {.noSideEffect, rtl, extern: "nsuUnindent".} =
## Unindents each line in ``s`` by ``count`` amount of ``padding``. ## Unindents each line in ``s`` by ``count`` amount of ``padding``.
## Sometimes called `dedent`:idx:
## ##
## **Note:** This does not preserve the new line characters used in ``s``. ## **Note:** This does not preserve the new line characters used in ``s``.
runnableExamples: runnableExamples: