yatex
changeset 550:d97881f33e28 dev
Add default template string for name="vieport" to meta completion
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 21 Aug 2018 10:49:30 +0900 |
parents | a58a35eac93f |
children | e7356faf50df |
files | yahtml.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/yahtml.el Tue Jul 31 08:21:44 2018 +0900 1.2 +++ b/yahtml.el Tue Aug 21 10:49:30 2018 +0900 1.3 @@ -1623,7 +1623,8 @@ 1.4 1.5 (defvar yahtml:meta-attrs 1.6 '(("charset" value) 1.7 - ("name" content ("keywords")("author")("copyright")("date")("GENERATOR")) 1.8 + ("name" content ("keywords")("author")("copyright")("date")("GENERATOR") 1.9 + ("viewport")) 1.10 ("http-equiv" content))) 1.11 1.12 (defun yahtml:meta () 1.13 @@ -1665,6 +1666,9 @@ 1.14 (error "Use <meta charset=\"...\" instead.. See docs/qanda.") 1.15 (yahtml-make-optional-argument 1.16 "content" (yahtml-read-parameter "content")))) 1.17 + ((string-match "viewport" name) 1.18 + ;; XXX: Very dirty static string 1.19 + "width=device-width, initial-scale=1") 1.20 (t (read-string-with-history (concat name ": "))))))) 1.21 (t (yahtml-make-optional-argument 1.22 attr (yahtml-read-parameter attr))))))