lib/review/textutils.rb in review-5.8.0 vs lib/review/textutils.rb in review-5.9.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (c) 2008-2020 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, +# Copyright (c) 2008-2023 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, # KADO Masanori # 2002-2007 Minero Aoki # # This program is free software. # You can distribute or modify this program under the terms of @@ -47,10 +47,10 @@ def add_space?(line1, line2, lang, lazy = nil) # https://drafts.csswg.org/css-text-3/#line-break-transform tail = line1[-1] head = line2[0] if tail.nil? || head.nil? - return nil + return false end space = true # rule 2 if %i[F W H].include?(Unicode::Eaw.property(tail)) &&