[htdocs] download: use <wbr> to break up some long <pre> text

Message ID 20231219102817.17546-1-vapier@gentoo.org
State New
Headers
Series [htdocs] download: use <wbr> to break up some long <pre> text |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Mike Frysinger Dec. 19, 2023, 10:28 a.m. UTC
  These URLs with parenthetical asides can generate very wide text on
smaller devices which makes scrolling/panning a pain.  Use <wbr> in
a few places to let the browser know it may add line breaks when
needed.  On small devices, we get much more comfortable view, while
on desktops, things look exactly the same as before.
---
 download/index.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Comments

Tom Tromey Dec. 22, 2023, 3:51 p.m. UTC | #1
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> These URLs with parenthetical asides can generate very wide text on
Mike> smaller devices which makes scrolling/panning a pain.  Use <wbr> in
Mike> a few places to let the browser know it may add line breaks when
Mike> needed.  On small devices, we get much more comfortable view, while
Mike> on desktops, things look exactly the same as before.

TIL <wbr>.
Anyway it seems fine.  Thanks for doing this.

Tom
  

Patch

diff --git a/download/index.html b/download/index.html
index 4ea7dfededd5..c94fd0826ced 100644
--- a/download/index.html
+++ b/download/index.html
@@ -55,15 +55,15 @@  You can download the most recent official release of GDB from either
 Project GNU's HTTPS server, or Red Hat's sources site:
 
 <pre>
-<a href="https://ftp.gnu.org/gnu/gdb" >https://ftp.gnu.org/gnu/gdb</a> (<a href="https://www.gnu.org/order/ftp.html">mirrors</a>)
-<a href="https://sourceware.org/pub/gdb/releases/?C=M;O=D" >https://sourceware.org/pub/gdb/releases/</a> (<a href="https://sourceware.org/mirrors.html">mirrors</a>)
+<a href="https://ftp.gnu.org/gnu/gdb">https://ftp.gnu.org/gnu/gdb</a><wbr> (<a href="https://www.gnu.org/order/ftp.html">mirrors</a>)
+<a href="https://sourceware.org/pub/gdb/releases/?C=M;O=D">https://sourceware.org/pub/gdb/releases/</a><wbr> (<a href="https://sourceware.org/mirrors.html">mirrors</a>)
 </pre>
 
 As with all GNU projects, you can verify the signatures for gnu project
 files with the keyring file from:
 
 <pre>
-<a href="https://ftp.gnu.org/gnu/gnu-keyring.gpg">https://ftp.gnu.org/gnu/gnu-keyring.gpg</a> (see <a href="https://ftp.gnu.org/README">https://ftp.gnu.org/README</a> for more info)
+<a href="https://ftp.gnu.org/gnu/gnu-keyring.gpg">https://ftp.gnu.org/gnu/gnu-keyring.gpg</a><wbr> (see <a href="https://ftp.gnu.org/README">https://ftp.gnu.org/README</a> for more info)
 </pre>
 
 Sources to the current development version are also available using
@@ -75,7 +75,7 @@  We've got GDB releases going back to the 2.4/2.8 timeframe in 1988.
 They're all on-line in the GDB HTTPS directory in:
 
 <pre>
-<a href="https://sourceware.org/pub/gdb/old-releases/?C=M;O=D">https://sourceware.org/pub/gdb/old-releases/</a> (<a href="https://sourceware.org/mirrors.html">mirrors</a>)
+<a href="https://sourceware.org/pub/gdb/old-releases/?C=M;O=D">https://sourceware.org/pub/gdb/old-releases/</a><wbr> (<a href="https://sourceware.org/mirrors.html">mirrors</a>)
 </pre>
 
 Be warned that few of these are likely to work on any modern