class Sass::CompileError
def to_css
-
(String)
-
def to_css content = full_message(highlight: false, order: :top) <<~CSS.freeze /* #{content.gsub('*/', "*\u2060/").gsub("\r\n", "\n").split("\n").join("\n * ")} */ body::before { position: static; display: block; padding: 1em; margin: 0 0 1em; border-width: 0 0 2px; border-bottom-style: solid; font-family: monospace, monospace; white-space: pre; content: #{Serializer.serialize_quoted_string(content).gsub(/[^[:ascii:]][\h\t ]?/) do |match| replacement = "\\#{match.ord.to_s(16)}" replacement << " #{match[1]}" if match.length > 1 replacement end}; } CSS end