[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: this page rendering [PATCH]
On 2018-05-09 00:46, andrés ramírez reported that non-breaking spaces were
being visually represented on rendered html pages, and that they shouldn't.
The attached patch fixes that by setting variable nobreak-char-display nil
as a local variable for all w3m mode buffers.
An example page is:
https://cheryllium.wordpress.com/2014/04/13/commonqt-tutorial-4/
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
Index: ChangeLog
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/ChangeLog,v
retrieving revision 1.3665
diff -b -u -w -r1.3665 ChangeLog
--- ChangeLog 2 May 2018 05:38:10 -0000 1.3665
+++ ChangeLog 9 May 2018 07:39:47 -0000
@@ -1,3 +1,7 @@
+2018-05-09 Boruch Baum <boruch_baum@xxxxxxx>
+
+ * w3m.el (w3m-mode): Don't visually indicate non-breaking spaces.
+
2018-05-02 Katsumi Yamaoka <yamaoka@xxxxxxx>
* w3m-image.el (w3m-favicon-usable-p): Relax the criterion.
Index: w3m.el
===================================================================
RCS file: /storage/cvsroot/emacs-w3m/w3m.el,v
retrieving revision 1.1708
diff -b -u -w -r1.1708 w3m.el
--- w3m.el 5 Apr 2018 05:20:01 -0000 1.1708
+++ w3m.el 9 May 2018 07:39:49 -0000
@@ -9014,6 +9058,7 @@
;; Force paragraph direction to be left-to-right. Don't make it
;; bound globally in old Emacsen and XEmacsen.
(set (make-local-variable 'bidi-paragraph-direction) 'left-to-right)
+ (set (make-local-variable 'nobreak-char-display) nil)
(setq truncate-lines t
w3m-display-inline-images w3m-default-display-inline-images)
(when w3m-auto-show