From f1ba95d9c35f4777d0767c0054c1e85bc84e6516 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 8 Mar 2025 14:27:34 +0100 Subject: Inject CSS directly in the HTML --- info2html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/info2html b/info2html index 523133f..1015868 100755 --- a/info2html +++ b/info2html @@ -56,6 +56,9 @@ $CURRENT_PATH=dirname(__FILE__); $INFO2HTMLCONF = $CURRENT_PATH."/info2html.conf"; require($INFO2HTMLCONF); #-- configuration settings +$INFO2HTMLCSS = do { local(@ARGV, $/) = $CURRENT_PATH."/info2html.css"; <> }; +$CSS_STYLE=""; + use URI::Escape; #-- patterns @@ -81,6 +84,7 @@ sub DieFileNotFound{ print <<"EOF"; Info Files - Error Message $BOTS_STAY_AWAY +$CSS_STYLE $HTML_HEAD_STUFF

File IO Error

The Info file could not be opened for reading.

@@ -444,6 +448,7 @@ sub PrintHeader{ print <<"EOF"; Info: ($BaseInfoFile) $LinkList[1] +$CSS_STYLE $HTML_HEAD_STUFF EOF @@ -493,6 +498,7 @@ sub ReplyNotFoundMessage{ print <<"EOF"; Info Files - Error Message $BOTS_STAY_AWAY +$CSS_STYLE $HTML_HEAD_STUFF

Error: Page not found

The Info node $Tag in Info file $FileName -- cgit v1.2.3