From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7130A1F45F for ; Sat, 11 May 2019 09:38:17 +0000 (UTC) From: Eric Wong To: Subject: [PATCH] dark216: adjust heredoc to stop confusing rdoc Date: Sat, 11 May 2019 09:38:17 +0000 Message-Id: <20190511093817.8063-1-e@80x24.org> List-Id: rdoc 6.1.0 seems to have trouble with '' as a heredoc terminator. --- lib/dark216.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dark216.rb b/lib/dark216.rb index c0e90ae..88a7108 100644 --- a/lib/dark216.rb +++ b/lib/dark216.rb @@ -20,7 +20,7 @@ class Dark216 < Oldweb # default to a dark, web-safe (216 color) palette for power-savings. # Color-capable browsers can respect the prefers-color-scheme:light # @media query (browser support a work-in-progress) - STYLE = <<''.gsub(/^\s*/m, '').delete!("\n") # :nodoc: + STYLE = <<'EOF'.gsub(/^\s*/m, '').delete!("\n") # :nodoc: @media screen { *{background:#000;color:#ccc} a{color:#69f;text-decoration:none} @@ -31,6 +31,7 @@ class Dark216 < Oldweb a{color:#00f;text-decoration:none} a:visited{color:#808} } +EOF def initialize(*args) # :nodoc: super -- EW