about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-23 19:55:09 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-23 19:55:09 +0200
commitd242bb35a2d6013a92cb7b9901d85e6a98b1431f (patch)
treea01a2c87088eed195670e90ff0c0722837880357
parentbf40bc957770a0367be51862d78ba4c85270e37b (diff)
downloadchawan-d242bb35a2d6013a92cb7b9901d85e6a98b1431f.tar.gz
Remove trailing spaces
-rw-r--r--src/bindings/curl.nim160
-rw-r--r--src/bindings/zlib.nim10
-rw-r--r--src/layout/engine.nim2
-rw-r--r--src/loader/request.nim2
-rw-r--r--src/local/client.nim2
-rw-r--r--src/server/buffer.nim2
-rw-r--r--src/types/cell.nim2
-rw-r--r--src/types/url.nim2
8 files changed, 91 insertions, 91 deletions
diff --git a/src/bindings/curl.nim b/src/bindings/curl.nim
index 720b7126..46553539 100644
--- a/src/bindings/curl.nim
+++ b/src/bindings/curl.nim
@@ -141,97 +141,97 @@ type
 
   CURLcode* {.size: sizeof(cint).} = enum
     CURLE_OK = 0,
-    CURLE_UNSUPPORTED_PROTOCOL,    # 1 
-    CURLE_FAILED_INIT,             # 2 
-    CURLE_URL_MALFORMAT,           # 3 
+    CURLE_UNSUPPORTED_PROTOCOL,    # 1
+    CURLE_FAILED_INIT,             # 2
+    CURLE_URL_MALFORMAT,           # 3
     CURLE_NOT_BUILT_IN,            # 4 - [was obsoleted in August 2007 for
                                    # 7.17.0, reused in April 2011 for 7.21.5]
-    CURLE_COULDNT_RESOLVE_PROXY,   # 5 
-    CURLE_COULDNT_RESOLVE_HOST,    # 6 
-    CURLE_COULDNT_CONNECT,         # 7 
-    CURLE_WEIRD_SERVER_REPLY,      # 8 
+    CURLE_COULDNT_RESOLVE_PROXY,   # 5
+    CURLE_COULDNT_RESOLVE_HOST,    # 6
+    CURLE_COULDNT_CONNECT,         # 7
+    CURLE_WEIRD_SERVER_REPLY,      # 8
     CURLE_REMOTE_ACCESS_DENIED,    # 9 a service was denied by the server
                                    # due to lack of access - when login fails
                                    # this is not returned.
     CURLE_FTP_ACCEPT_FAILED,       # 10 - [was obsoleted in April 2006 for
                                    # 7.15.4, reused in Dec 2011 for 7.24.0]
-    CURLE_FTP_WEIRD_PASS_REPLY,    # 11 
+    CURLE_FTP_WEIRD_PASS_REPLY,    # 11
     CURLE_FTP_ACCEPT_TIMEOUT,      # 12 - timeout occurred accepting server
                                    # [was obsoleted in August 2007 for 7.17.0,
                                    # reused in Dec 2011 for 7.24.0]
-    CURLE_FTP_WEIRD_PASV_REPLY,    # 13 
-    CURLE_FTP_WEIRD_227_FORMAT,    # 14 
-    CURLE_FTP_CANT_GET_HOST,       # 15 
+    CURLE_FTP_WEIRD_PASV_REPLY,    # 13
+    CURLE_FTP_WEIRD_227_FORMAT,    # 14
+    CURLE_FTP_CANT_GET_HOST,       # 15
     CURLE_HTTP2,                   # 16 - A problem in the http2 framing layer.
                                    # [was obsoleted in August 2007 for 7.17.0,
                                    # reused in July 2014 for 7.38.0]
-    CURLE_FTP_COULDNT_SET_TYPE,    # 17 
-    CURLE_PARTIAL_FILE,            # 18 
-    CURLE_FTP_COULDNT_RETR_FILE,   # 19 
-    CURLE_OBSOLETE20,              # 20 - NOT USED 
-    CURLE_QUOTE_ERROR,             # 21 - quote command failure 
-    CURLE_HTTP_RETURNED_ERROR,     # 22 
-    CURLE_WRITE_ERROR,             # 23 
-    CURLE_OBSOLETE24,              # 24 - NOT USED 
-    CURLE_UPLOAD_FAILED,           # 25 - failed upload "command" 
-    CURLE_READ_ERROR,              # 26 - couldn't open/read from file 
-    CURLE_OUT_OF_MEMORY,           # 27 
-    CURLE_OPERATION_TIMEDOUT,      # 28 - the timeout time was reached 
-    CURLE_OBSOLETE29,              # 29 - NOT USED 
-    CURLE_FTP_PORT_FAILED,         # 30 - FTP PORT operation failed 
-    CURLE_FTP_COULDNT_USE_REST,    # 31 - the REST command failed 
-    CURLE_OBSOLETE32,              # 32 - NOT USED 
-    CURLE_RANGE_ERROR,             # 33 - RANGE "command" didn't work 
-    CURLE_HTTP_POST_ERROR,         # 34 
-    CURLE_SSL_CONNECT_ERROR,       # 35 - wrong when connecting with SSL 
-    CURLE_BAD_DOWNLOAD_RESUME,     # 36 - couldn't resume download 
-    CURLE_FILE_COULDNT_READ_FILE,  # 37 
-    CURLE_LDAP_CANNOT_BIND,        # 38 
-    CURLE_LDAP_SEARCH_FAILED,      # 39 
-    CURLE_OBSOLETE40,              # 40 - NOT USED 
-    CURLE_FUNCTION_NOT_FOUND,      # 41 - NOT USED starting with 7.53.0 
-    CURLE_ABORTED_BY_CALLBACK,     # 42 
-    CURLE_BAD_FUNCTION_ARGUMENT,   # 43 
-    CURLE_OBSOLETE44,              # 44 - NOT USED 
-    CURLE_INTERFACE_FAILED,        # 45 - CURLOPT_INTERFACE failed 
-    CURLE_OBSOLETE46,              # 46 - NOT USED 
-    CURLE_TOO_MANY_REDIRECTS,      # 47 - catch endless re-direct loops 
-    CURLE_UNKNOWN_OPTION,          # 48 - User specified an unknown option 
-    CURLE_SETOPT_OPTION_SYNTAX,    # 49 - Malformed setopt option 
-    CURLE_OBSOLETE50,              # 50 - NOT USED 
-    CURLE_OBSOLETE51,              # 51 - NOT USED 
-    CURLE_GOT_NOTHING,             # 52 - when this is a specific error 
-    CURLE_SSL_ENGINE_NOTFOUND,     # 53 - SSL crypto engine not found 
+    CURLE_FTP_COULDNT_SET_TYPE,    # 17
+    CURLE_PARTIAL_FILE,            # 18
+    CURLE_FTP_COULDNT_RETR_FILE,   # 19
+    CURLE_OBSOLETE20,              # 20 - NOT USED
+    CURLE_QUOTE_ERROR,             # 21 - quote command failure
+    CURLE_HTTP_RETURNED_ERROR,     # 22
+    CURLE_WRITE_ERROR,             # 23
+    CURLE_OBSOLETE24,              # 24 - NOT USED
+    CURLE_UPLOAD_FAILED,           # 25 - failed upload "command"
+    CURLE_READ_ERROR,              # 26 - couldn't open/read from file
+    CURLE_OUT_OF_MEMORY,           # 27
+    CURLE_OPERATION_TIMEDOUT,      # 28 - the timeout time was reached
+    CURLE_OBSOLETE29,              # 29 - NOT USED
+    CURLE_FTP_PORT_FAILED,         # 30 - FTP PORT operation failed
+    CURLE_FTP_COULDNT_USE_REST,    # 31 - the REST command failed
+    CURLE_OBSOLETE32,              # 32 - NOT USED
+    CURLE_RANGE_ERROR,             # 33 - RANGE "command" didn't work
+    CURLE_HTTP_POST_ERROR,         # 34
+    CURLE_SSL_CONNECT_ERROR,       # 35 - wrong when connecting with SSL
+    CURLE_BAD_DOWNLOAD_RESUME,     # 36 - couldn't resume download
+    CURLE_FILE_COULDNT_READ_FILE,  # 37
+    CURLE_LDAP_CANNOT_BIND,        # 38
+    CURLE_LDAP_SEARCH_FAILED,      # 39
+    CURLE_OBSOLETE40,              # 40 - NOT USED
+    CURLE_FUNCTION_NOT_FOUND,      # 41 - NOT USED starting with 7.53.0
+    CURLE_ABORTED_BY_CALLBACK,     # 42
+    CURLE_BAD_FUNCTION_ARGUMENT,   # 43
+    CURLE_OBSOLETE44,              # 44 - NOT USED
+    CURLE_INTERFACE_FAILED,        # 45 - CURLOPT_INTERFACE failed
+    CURLE_OBSOLETE46,              # 46 - NOT USED
+    CURLE_TOO_MANY_REDIRECTS,      # 47 - catch endless re-direct loops
+    CURLE_UNKNOWN_OPTION,          # 48 - User specified an unknown option
+    CURLE_SETOPT_OPTION_SYNTAX,    # 49 - Malformed setopt option
+    CURLE_OBSOLETE50,              # 50 - NOT USED
+    CURLE_OBSOLETE51,              # 51 - NOT USED
+    CURLE_GOT_NOTHING,             # 52 - when this is a specific error
+    CURLE_SSL_ENGINE_NOTFOUND,     # 53 - SSL crypto engine not found
     CURLE_SSL_ENGINE_SETFAILED,    # 54 - can not set SSL crypto engine as
                                    # default
-    CURLE_SEND_ERROR,              # 55 - failed sending network data 
-    CURLE_RECV_ERROR,              # 56 - failure in receiving network data 
-    CURLE_OBSOLETE57,              # 57 - NOT IN USE 
-    CURLE_SSL_CERTPROBLEM,         # 58 - problem with the local certificate 
-    CURLE_SSL_CIPHER,              # 59 - couldn't use specified cipher 
+    CURLE_SEND_ERROR,              # 55 - failed sending network data
+    CURLE_RECV_ERROR,              # 56 - failure in receiving network data
+    CURLE_OBSOLETE57,              # 57 - NOT IN USE
+    CURLE_SSL_CERTPROBLEM,         # 58 - problem with the local certificate
+    CURLE_SSL_CIPHER,              # 59 - couldn't use specified cipher
     CURLE_PEER_FAILED_VERIFICATION, # 60 - peer's certificate or fingerprint
                                    # wasn't verified fine
-    CURLE_BAD_CONTENT_ENCODING,    # 61 - Unrecognized/bad encoding 
-    CURLE_OBSOLETE62,              # 62 - NOT IN USE since 7.82.0 
-    CURLE_FILESIZE_EXCEEDED,       # 63 - Maximum file size exceeded 
-    CURLE_USE_SSL_FAILED,          # 64 - Requested FTP SSL level failed 
+    CURLE_BAD_CONTENT_ENCODING,    # 61 - Unrecognized/bad encoding
+    CURLE_OBSOLETE62,              # 62 - NOT IN USE since 7.82.0
+    CURLE_FILESIZE_EXCEEDED,       # 63 - Maximum file size exceeded
+    CURLE_USE_SSL_FAILED,          # 64 - Requested FTP SSL level failed
     CURLE_SEND_FAIL_REWIND,        # 65 - Sending the data requires a rewind
                                    # that failed
-    CURLE_SSL_ENGINE_INITFAILED,   # 66 - failed to initialise ENGINE 
+    CURLE_SSL_ENGINE_INITFAILED,   # 66 - failed to initialise ENGINE
     CURLE_LOGIN_DENIED,            # 67 - user, password or similar was not
                                    # accepted and we failed to login
-    CURLE_TFTP_NOTFOUND,           # 68 - file not found on server 
-    CURLE_TFTP_PERM,               # 69 - permission problem on server 
-    CURLE_REMOTE_DISK_FULL,        # 70 - out of disk space on server 
-    CURLE_TFTP_ILLEGAL,            # 71 - Illegal TFTP operation 
-    CURLE_TFTP_UNKNOWNID,          # 72 - Unknown transfer ID 
-    CURLE_REMOTE_FILE_EXISTS,      # 73 - File already exists 
-    CURLE_TFTP_NOSUCHUSER,         # 74 - No such user 
-    CURLE_CONV_FAILED,             # 75 - conversion failed 
-    CURLE_OBSOLETE76,              # 76 - NOT IN USE since 7.82.0 
+    CURLE_TFTP_NOTFOUND,           # 68 - file not found on server
+    CURLE_TFTP_PERM,               # 69 - permission problem on server
+    CURLE_REMOTE_DISK_FULL,        # 70 - out of disk space on server
+    CURLE_TFTP_ILLEGAL,            # 71 - Illegal TFTP operation
+    CURLE_TFTP_UNKNOWNID,          # 72 - Unknown transfer ID
+    CURLE_REMOTE_FILE_EXISTS,      # 73 - File already exists
+    CURLE_TFTP_NOSUCHUSER,         # 74 - No such user
+    CURLE_CONV_FAILED,             # 75 - conversion failed
+    CURLE_OBSOLETE76,              # 76 - NOT IN USE since 7.82.0
     CURLE_SSL_CACERT_BADFILE,      # 77 - could not load CACERT file, missing
                                    # or wrong format
-    CURLE_REMOTE_FILE_NOT_FOUND,   # 78 - remote file not found 
+    CURLE_REMOTE_FILE_NOT_FOUND,   # 78 - remote file not found
     CURLE_SSH,                     # 79 - error from the SSH layer, somewhat
                                    # generic so the error message will be of
                                    # interest when this has happened
@@ -245,27 +245,27 @@ type
                                    # wrong format (Added in 7.19.0)
     CURLE_SSL_ISSUER_ERROR,        # 83 - Issuer check failed.  (Added in
                                    # 7.19.0)
-    CURLE_FTP_PRET_FAILED,         # 84 - a PRET command failed 
-    CURLE_RTSP_CSEQ_ERROR,         # 85 - mismatch of RTSP CSeq numbers 
-    CURLE_RTSP_SESSION_ERROR,      # 86 - mismatch of RTSP Session Ids 
-    CURLE_FTP_BAD_FILE_LIST,       # 87 - unable to parse FTP file list 
-    CURLE_CHUNK_FAILED,            # 88 - chunk callback reported error 
+    CURLE_FTP_PRET_FAILED,         # 84 - a PRET command failed
+    CURLE_RTSP_CSEQ_ERROR,         # 85 - mismatch of RTSP CSeq numbers
+    CURLE_RTSP_SESSION_ERROR,      # 86 - mismatch of RTSP Session Ids
+    CURLE_FTP_BAD_FILE_LIST,       # 87 - unable to parse FTP file list
+    CURLE_CHUNK_FAILED,            # 88 - chunk callback reported error
     CURLE_NO_CONNECTION_AVAILABLE, # 89 - No connection available, the
                                    # session will be queued
     CURLE_SSL_PINNEDPUBKEYNOTMATCH, # 90 - specified pinned public key did not
                                    #  match
-    CURLE_SSL_INVALIDCERTSTATUS,   # 91 - invalid certificate status 
+    CURLE_SSL_INVALIDCERTSTATUS,   # 91 - invalid certificate status
     CURLE_HTTP2_STREAM,            # 92 - stream error in HTTP/2 framing layer
     CURLE_RECURSIVE_API_CALL,      # 93 - an api function was called from
                                    # inside a callback
     CURLE_AUTH_ERROR,              # 94 - an authentication function returned an
                                    # error
-    CURLE_HTTP3,                   # 95 - An HTTP/3 layer problem 
-    CURLE_QUIC_CONNECT_ERROR,      # 96 - QUIC connection error 
-    CURLE_PROXY,                   # 97 - proxy handshake error 
-    CURLE_SSL_CLIENTCERT,          # 98 - client-side certificate required 
-    CURLE_UNRECOVERABLE_POLL,      # 99 - poll/select returned fatal error 
-    CURL_LAST # never use! 
+    CURLE_HTTP3,                   # 95 - An HTTP/3 layer problem
+    CURLE_QUIC_CONNECT_ERROR,      # 96 - QUIC connection error
+    CURLE_PROXY,                   # 97 - proxy handshake error
+    CURLE_SSL_CLIENTCERT,          # 98 - client-side certificate required
+    CURLE_UNRECOVERABLE_POLL,      # 99 - poll/select returned fatal error
+    CURL_LAST # never use!
 
   curl_ftpmethod* {.size: sizeof(clong).} = enum
     CURLFTPMETHOD_DEFAULT, # let libcurl pick
diff --git a/src/bindings/zlib.nim b/src/bindings/zlib.nim
index 00acb1ca..10a2c560 100644
--- a/src/bindings/zlib.nim
+++ b/src/bindings/zlib.nim
@@ -56,13 +56,13 @@ type
     state*: ptr internal_state # not visible by applications
 
     zalloc*: alloc_func # used to allocate the internal state
-    zfree*: free_func # used to free the internal state 
-    opaque*: pointer # private data object passed to zalloc and zfree 
+    zfree*: free_func # used to free the internal state
+    opaque*: pointer # private data object passed to zalloc and zfree
 
     data_type*: cint # best guess about the data type: binary or text
-                     # for deflate, or the decoding state for inflate 
-    adler*: culong # Adler-32 or CRC-32 value of the uncompressed data 
-    reserved*: culong # reserved for future use 
+                     # for deflate, or the decoding state for inflate
+    adler*: culong # Adler-32 or CRC-32 value of the uncompressed data
+    reserved*: culong # reserved for future use
 
   z_streamp* = ptr z_stream
 
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 4a242e02..dce80eb4 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -771,7 +771,7 @@ func toPercSize(sc: SizeConstraint): Option[LayoutUnit] =
   if sc.isDefinite():
     return some(sc.u)
   return none(LayoutUnit)
- 
+
 func getParentWidth(box, parent: BlockBox): SizeConstraint =
   return parent.availableWidth
 
diff --git a/src/loader/request.nim b/src/loader/request.nim
index e5f8f013..7596a0a2 100644
--- a/src/loader/request.nim
+++ b/src/loader/request.nim
@@ -79,7 +79,7 @@ type
     credentialsMode* {.jsget.}: CredentialsMode
     proxy*: URL #TODO do something with this
     canredir*: bool
- 
+
   ReadableStream* = ref object of Stream
     isource*: Stream
     buf: string
diff --git a/src/local/client.nim b/src/local/client.nim
index 906c5bee..61458bda 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -398,7 +398,7 @@ proc inputLoop(client: Client) =
         client.handleRead(event.fd)
       if Error in event.events:
         client.handleError(event.fd)
-      if Signal in event.events: 
+      if Signal in event.events:
         assert event.fd == sigwinch
         let attrs = getWindowAttributes(client.pager.tty)
         client.pager.windowChange(attrs)
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index 55247ac3..f5ece03b 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -267,7 +267,7 @@ macro proxy(fun: typed) =
     proxy1(`fun`)
 
 macro task(fun: typed) =
-  let funid = getFunId(fun) 
+  let funid = getFunId(fun)
   let pfun = getProxyFunction(funid)
   pfun.istask = true
   fun
diff --git a/src/types/cell.nim b/src/types/cell.nim
index 87148389..ff5eafdd 100644
--- a/src/types/cell.nim
+++ b/src/types/cell.nim
@@ -109,7 +109,7 @@ func findFormatN*(line: FlexibleLine|SimpleFlexibleLine, pos: int): int =
   while i < line.formats.len:
     if line.formats[i].pos > pos:
       break
-    inc i 
+    inc i
   return i
 
 func findFormat*(line: FlexibleLine, pos: int): FormatCell =
diff --git a/src/types/url.nim b/src/types/url.nim
index 562ec31b..1ded3d36 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -196,7 +196,7 @@ func parseIpv4(input: string): Option[uint32] =
   for i in low(parts)..high(parts):
     let part = parts[i]
     let num = parseIpv4Number(part)
-    if num < 0: 
+    if num < 0:
       return none(uint32)
     if num > 255:
       if i != high(parts):