lib/rouge/cli.rb in rouge-3.2.1 vs lib/rouge/cli.rb in rouge-3.3.0

- old
+ new

@@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # +# frozen_string_literal: true # not required by the main lib. # to use this module, require 'rouge/cli'. module Rouge @@ -363,10 +364,10 @@ def run puts "== Available Lexers ==" Lexer.all.sort_by(&:tag).each do |lexer| - desc = "#{lexer.desc}" + desc = String.new("#{lexer.desc}") if lexer.aliases.any? desc << " [aliases: #{lexer.aliases.join(',')}]" end puts "%s: %s" % [lexer.tag, desc]