Fix word wrapping
This commit is contained in:
parent
e6d5379b3b
commit
3ad48069d3
18 changed files with 146 additions and 125 deletions
|
|
@ -311,9 +311,9 @@ proc cd*(dir: string) {.raises: [OSError].} =
|
|||
## Changes the current directory.
|
||||
##
|
||||
## The change is permanent for the rest of the execution, since this is just
|
||||
## a shortcut for `os.setCurrentDir()
|
||||
## <os.html#setCurrentDir,string>`_ . Use the `withDir()
|
||||
## <#withDir.t,string,untyped>`_ template if you want to perform a temporary change only.
|
||||
## a shortcut for `os.setCurrentDir() <os.html#setCurrentDir,string>`_ . Use
|
||||
## the `withDir() <#withDir.t,string,untyped>`_ template if you want to
|
||||
## perform a temporary change only.
|
||||
setCurrentDir(dir)
|
||||
checkOsError()
|
||||
|
||||
|
|
@ -326,7 +326,8 @@ proc findExe*(bin: string): string =
|
|||
template withDir*(dir: string; body: untyped): untyped =
|
||||
## Changes the current directory temporarily.
|
||||
##
|
||||
## If you need a permanent change, use the `cd() <#cd,string>`_ proc. Usage example:
|
||||
## If you need a permanent change, use the `cd() <#cd,string>`_ proc.
|
||||
## Usage example:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## withDir "foo":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue