diff options
author | flywind <xzsflywind@gmail.com> | 2021-02-23 23:05:39 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 21:05:39 -0800 |
commit | 47c078e29c7e459e8b413dcc0020637e6e042c44 (patch) | |
tree | 547b38bde951a29c8f09fff8cc65485dbd7ad49a /lib/pure/browsers.nim | |
parent | c274e67198e446f07708c0a14751da3b2832cec9 (diff) | |
download | Nim-47c078e29c7e459e8b413dcc0020637e6e042c44.tar.gz |
use single backtick (#17166)
Diffstat (limited to 'lib/pure/browsers.nim')
-rw-r--r-- | lib/pure/browsers.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/pure/browsers.nim b/lib/pure/browsers.nim index aff95e09b..08f5208d2 100644 --- a/lib/pure/browsers.nim +++ b/lib/pure/browsers.nim @@ -27,7 +27,7 @@ else: const osOpenCmd* = when defined(macos) or defined(macosx) or defined(windows): "open" else: "xdg-open" ## \ ## Alias for the operating system specific *"open"* command, - ## ``"open"`` on OSX, MacOS and Windows, ``"xdg-open"`` on Linux, BSD, etc. + ## `"open"` on OSX, MacOS and Windows, `"xdg-open"` on Linux, BSD, etc. proc prepare(s: string): string = if s.contains("://"): @@ -47,7 +47,7 @@ proc openDefaultBrowserImpl(url: string) = if execShellCmd(osOpenCmd & " " & u) == 0: return for b in getEnv("BROWSER").split(PathSep): try: - # we use ``startProcess`` here because we don't want to block! + # we use `startProcess` here because we don't want to block! discard startProcess(command = b, args = [url], options = {poUsePath}) return except OSError: @@ -57,9 +57,9 @@ proc openDefaultBrowser*(url: string) = ## Opens `url` with the user's default browser. This does not block. ## The URL must not be empty string, to open on a blank page see `openDefaultBrowser()`. ## - ## Under Windows, ``ShellExecute`` is used. Under Mac OS X the ``open`` - ## command is used. Under Unix, it is checked if ``xdg-open`` exists and - ## used if it does. Otherwise the environment variable ``BROWSER`` is + ## Under Windows, `ShellExecute` is used. Under Mac OS X the `open` + ## command is used. Under Unix, it is checked if `xdg-open` exists and + ## used if it does. Otherwise the environment variable `BROWSER` is ## used to determine the default browser to use. ## ## This proc doesn't raise an exception on error, beware. @@ -73,9 +73,9 @@ proc openDefaultBrowser*() {.since: (1, 1).} = ## Opens the user's default browser without any `url` (blank page). This does not block. ## Implements IETF RFC-6694 Section 3, "about:blank" must be reserved for a blank page. ## - ## Under Windows, ``ShellExecute`` is used. Under Mac OS X the ``open`` - ## command is used. Under Unix, it is checked if ``xdg-open`` exists and - ## used if it does. Otherwise the environment variable ``BROWSER`` is + ## Under Windows, `ShellExecute` is used. Under Mac OS X the `open` + ## command is used. Under Unix, it is checked if `xdg-open` exists and + ## used if it does. Otherwise the environment variable `BROWSER` is ## used to determine the default browser to use. ## ## This proc doesn't raise an exception on error, beware. |