[tz] [PROPOSED] ‘white-space: pre-wrap’ to avoid tiny fonts

Paul Eggert eggert at cs.ucla.edu
Wed May 16 17:58:29 UTC 2018


* theory.html, tz-how-to.html, tz-link.html: Use ‘white-space:
pre-wrap’ to avoid tiny font on Android mobile browsers.  Migrate
this style setting to a <style> element, and be consistent about
it in the tz web pages.
---
 theory.html    | 3 +++
 tz-how-to.html | 3 +++
 tz-link.html   | 9 ++++++---
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/theory.html b/theory.html
index 0ada9e3..2d6e505 100644
--- a/theory.html
+++ b/theory.html
@@ -3,6 +3,9 @@
 <head>
   <title>Theory and pragmatics of the tz code and data</title>
   <meta charset="UTF-8">
+  <style>
+    pre {margin-left: 2em; white-space: pre-wrap;}
+  </style>
 </head>
 
 <body>
diff --git a/tz-how-to.html b/tz-how-to.html
index a54f54a..367c6ed 100644
--- a/tz-how-to.html
+++ b/tz-how-to.html
@@ -5,6 +5,9 @@
 <head>
 <title>How to Read the tz Database</title>
 <meta http-equiv="Content-type" content='text/html; charset="UTF-8"'>
+<style>
+pre {margin-left: 2em; white-space: pre-wrap;}
+</style>
 </head>
 <body>
 <h2>How to Read the <a href="https://en.wikipedia.org/wiki/Tz_database">tz
diff --git a/tz-link.html b/tz-link.html
index b8b7944..87241da 100644
--- a/tz-link.html
+++ b/tz-link.html
@@ -3,6 +3,9 @@
 <head>
 <title>Sources for time zone and daylight saving time data</title>
 <meta charset="UTF-8">
+<style>
+pre {margin-left: 2em; white-space: pre-wrap;}
+</style>
 </head>
 <body>
 <h1>Sources for time zone and daylight saving time data</h1>
@@ -97,7 +100,7 @@ href="https://en.wikipedia.org/wiki/Unix_shell">shell</a> commands download
 the latest release's two
 <a href="https://en.wikipedia.org/wiki/Tar_(computing)">tarballs</a>
 to a <abbr>GNU</abbr>/Linux or similar host.</p>
-<pre style="margin-left: 2em"><code>mkdir tzdb
+<pre><code>mkdir tzdb
 cd tzdb
 <a href="https://www.gnu.org/software/wget/">wget</a> https://www.iana.org/time-zones/repository/tzcode-latest.tar.gz
 wget https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz
@@ -107,7 +110,7 @@ gzip -dc tzdata-latest.tar.gz | tar -xf -
 <p>Alternatively, the following shell commands download the same
 release in a single-tarball format containing extra data
 useful for regression testing:</p>
-<pre style="margin-left: 2em"><code>wget <a href="https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz">https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz</a>
+<pre><code>wget <a href="https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz">https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz</a>
 <a href="https://www.nongnu.org/lzip/">lzip</a> -dc tzdb-latest.tar.lz | tar -xf -
 </code></pre>
 <p>These commands use convenience links to the latest release
@@ -133,7 +136,7 @@ less-secure protocol.</p>
 <p>Alternatively, a development repository of code and data can be
 retrieved from <a href="https://github.com">GitHub</a> via the shell
 command:</p>
-<pre style="margin-left: 2em"><code><a href="https://git-scm.com">git</a> clone <a href="https://github.com/eggert/tz">https://github.com/eggert/tz</a>
+<pre><code><a href="https://git-scm.com">git</a> clone <a href="https://github.com/eggert/tz">https://github.com/eggert/tz</a>
 </code></pre>
 <p>
 Since version 2012e, each release has been tagged in development repositories.
-- 
2.17.0



More information about the tz mailing list