From 523696a3c0584c7eda338d7bde8a25d786d293a0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 1 Apr 2024 06:33:00 -0700 Subject: [PATCH 1/2] Remove hyphenation at end of lines in ioccc.css In other words we won't see text like: ... See also the IOCCC FAQ for ad- ditional information on the IOCCC. As I am not sure of the formatting of comments and the organisation of the different html elements it might be that the CSS for 'p' might need new comments or it might need to be moved to another section in the file (which I believe but do not know). --- ioccc.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ioccc.css b/ioccc.css index 23d9588c4..923a37b80 100644 --- a/ioccc.css +++ b/ioccc.css @@ -14,6 +14,16 @@ html { -webkit-text-size-adjust: 100%; /* 2 */ } +/* + * Remove hyphenation in line endings in all browsers. + */ +p { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; +} + /* Sections ========================================================================== */ /* From 86ddb9ac48a2339e7baf8793fb03996c9dba57c8 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 1 Apr 2024 06:39:25 -0700 Subject: [PATCH 2/2] Change 'hyphens: none;' to 'hyphens: manual;' .. per a comment on GitHub suggesting none is not wanted. Again maybe it needs to be in a different section or even different html element but this seems to solve the problem anyway and can be experimented with. --- ioccc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioccc.css b/ioccc.css index 923a37b80..d1361d719 100644 --- a/ioccc.css +++ b/ioccc.css @@ -21,7 +21,7 @@ p { -moz-hyphens: none; -ms-hyphens: none; -webkit-hyphens: none; - hyphens: none; + hyphens: manual; } /* Sections ========================================================================== */