aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-08-01 14:46:23 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-08-01 14:46:23 +0000
commit9cbe40c99ece3909e0192cd9f62dbf2ca4449802 (patch)
treeb3eb1def55a4dabe4677748a22a78698b918854f /debian/patches
parentUpdate README.Debian to mention package development (diff)
downloadw3m-9cbe40c99ece3909e0192cd9f62dbf2ca4449802.tar.gz
w3m-9cbe40c99ece3909e0192cd9f62dbf2ca4449802.zip
New patch 160_ignore-shy.patch to ignore &shy; (closes: #441934)
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/160_ignore-shy.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/160_ignore-shy.patch b/debian/patches/160_ignore-shy.patch
new file mode 100644
index 0000000..2955881
--- /dev/null
+++ b/debian/patches/160_ignore-shy.patch
@@ -0,0 +1,17 @@
+Subject: Ignore &shy; to prevent drawing hyphens everywhere
+Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441934
+From: Hilko Bengen <bengen@debian.org>
+
+diff --git a/entity.c b/entity.c
+index fdd8f64..a7c9e99 100644
+--- a/entity.c
++++ b/entity.c
+@@ -44,6 +44,8 @@ conv_entity(unsigned int c)
+ return " ";
+ if (c == 0xa0)
+ return NBSP;
++ if (c == 0xad) /* SOFT HYPHEN */
++ return "";
+ if (c < 0x100) { /* Latin1 (ISO 8859-1) */
+ if (UseAltEntity)
+ return alt_latin1[c - 0xa0];
diff --git a/debian/patches/series b/debian/patches/series
index 9a7199b..8b22a7e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,3 +14,4 @@
130_siteconf.patch
140_sort-dump-links.patch
150_contact-list.patch
+160_ignore-shy.patch