You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/10/28 21:56:25 UTC

[whimsy] branch master updated: xhtml mangles the output

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new fbd0db0  xhtml mangles the output
fbd0db0 is described below

commit fbd0db0c78602615d6cdf58621bd1563efbc5ee3
Author: Sebb <se...@apache.org>
AuthorDate: Thu Oct 28 22:56:19 2021 +0100

    xhtml mangles the output
---
 tools/collate_minutes.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 5595728..f07094b 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -135,7 +135,7 @@ http = Net::HTTP.new(CALENDAR.host, CALENDAR.port)
 http.use_ssl = true
 http.verify_mode = OpenSSL::SSL::VERIFY_NONE
 get = Net::HTTP::Get.new CALENDAR.request_uri
-$calendar = Nokogiri::HTML(http.request(get).body.gsub('&raquo','&#187;').gsub('&nbsp;','&#160;'))
+$calendar = Nokogiri::HTML(http.request(get).body.gsub('&raquo', '&#187;').gsub('&nbsp;', '&#160;'))
 
 # Link to headerlink css
 link = Nokogiri::XML::Node.new "link", $calendar
@@ -788,7 +788,7 @@ def layout(title = nil)
   # now add the content provided by the builder block
   content.at('body').children.each {|child| section.add_child child}
 
-  $calendar.to_xhtml
+  $calendar.to_html
 end
 
 Dir.entries(SITE_MINUTES).each do |p|