diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-25 01:17:36 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-25 01:17:36 +0100 |
commit | 2d3b4faaffb62b6f449bd3dcb59f5ac4fbb16415 (patch) | |
tree | a07a1970757322e367c66a813a0a2eeafba23f18 /src/ips | |
parent | b086e346afeded51c94c9b77280dcea6f6b3ce8a (diff) | |
download | chawan-2d3b4faaffb62b6f449bd3dcb59f5ac4fbb16415.tar.gz |
Fix user style regression, add minimum-contrast
Diffstat (limited to 'src/ips')
-rw-r--r-- | src/ips/serialize.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ips/serialize.nim b/src/ips/serialize.nim index 2114cec0..9de0e374 100644 --- a/src/ips/serialize.nim +++ b/src/ips/serialize.nim @@ -5,6 +5,7 @@ import streams import tables import buffer/cell +import config/bufferconfig import io/request import js/regex import types/buffersource @@ -178,6 +179,9 @@ proc swrite*(stream: Stream, source: BufferSource) = stream.swrite(source.location) stream.swrite(source.contenttype) +proc swrite*(stream: Stream, bconfig: BufferConfig) = + stream.swrite(bconfig.userstyle) + template sread*[T](stream: Stream, o: T) = stream.read(o) @@ -307,3 +311,6 @@ proc sread*(stream: Stream, source: var BufferSource) = stream.sread(source.fd) stream.sread(source.location) stream.sread(source.contenttype) + +proc sread*(stream: Stream, bconfig: var BufferConfig) = + stream.sread(bconfig.userstyle) |