aboutsummaryrefslogtreecommitdiff
path: root/network/elinks/patches
diff options
context:
space:
mode:
authorDavid Woodfall <dave@slackbuilds.org>2021-04-22 07:12:42 +0000
committerDave Woodfall <dave@slackbuilds.org>2021-04-22 14:07:04 +0000
commitc26cc0a3f5bbacbf3c7ad15fba3d8546b1bde784 (patch)
tree62bbc68122649d65c2c38f11fdee70eeb83d5df1 /network/elinks/patches
parent3d8e49e7a0cd7fa68a52f538e865d6df9dd35f60 (diff)
network/elinks: Updated for version git20170723.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'network/elinks/patches')
-rw-r--r--network/elinks/patches/0000-force-text-wrap.patch26
-rw-r--r--network/elinks/patches/0004-ssl_cert_verify.patch12
2 files changed, 26 insertions, 12 deletions
diff --git a/network/elinks/patches/0000-force-text-wrap.patch b/network/elinks/patches/0000-force-text-wrap.patch
new file mode 100644
index 0000000000..4705cb0893
--- /dev/null
+++ b/network/elinks/patches/0000-force-text-wrap.patch
@@ -0,0 +1,26 @@
+# This wraps <pre> text too when "W" is pressed.
+# (main toggle-wrap-text)
+diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
+index 6470c54..a40a4ef 100644
+--- a/src/document/html/renderer.c
++++ b/src/document/html/renderer.c
+@@ -1801,7 +1801,7 @@ put_chars(struct html_context *html_context, unsigned char *chars, int charslen)
+
+ renderer_context.nobreak = 0;
+
+- if (!(html_context->options->wrap || html_is_preformatted())) {
++ if (html_context->options->wrap || !html_is_preformatted()) {
+ while (part->cx > overlap(par_format)
+ && part->cx > par_format.leftmargin) {
+ int x = split_line(html_context);
+@@ -1822,9 +1822,7 @@ put_chars(struct html_context *html_context, unsigned char *chars, int charslen)
+ int_lower_bound(&part->max_width, part->xa
+ + par_format.leftmargin + par_format.rightmargin
+ - (chars[charslen - 1] == ' '
+- && !html_is_preformatted()));
+- return;
+-
++ && (html_context->options->wrap || !html_is_preformatted())));
+ }
+
+ #undef overlap
diff --git a/network/elinks/patches/0004-ssl_cert_verify.patch b/network/elinks/patches/0004-ssl_cert_verify.patch
index 3b56e1ae40..6bb1748856 100644
--- a/network/elinks/patches/0004-ssl_cert_verify.patch
+++ b/network/elinks/patches/0004-ssl_cert_verify.patch
@@ -123,18 +123,6 @@ diff -Naur a/src/network/ssl/socket.c b/src/network/ssl/socket.c
if (get_opt_bool("connection.ssl.client_cert.enable", NULL)) {
unsigned char *client_cert;
-diff -Naur a/src/network/ssl/ssl.c b/src/network/ssl/ssl.c
---- a/src/network/ssl/ssl.c 2017-12-21 15:58:12.553249389 +0000
-+++ b/src/network/ssl/ssl.c 2017-12-21 16:11:03.378949490 +0000
-@@ -109,7 +109,7 @@
-
- static union option_info openssl_options[] = {
- INIT_OPT_BOOL("connection.ssl", N_("Verify certificates"),
-- "cert_verify", 0, 0,
-+ "cert_verify", 0, 1,
- N_("Verify the peer's SSL certificate. Note that this "
- "needs extensive configuration of OpenSSL by the user.")),
-
diff -Naur a/src/network/state.c b/src/network/state.c
--- a/src/network/state.c 2017-12-21 15:58:12.553249389 +0000
+++ b/src/network/state.c 2017-12-21 16:10:20.579746621 +0000