diff --git a/lib/utils/file_writer.rb b/lib/utils/file_writer.rb index 4bd5444..9dafed7 100644 --- a/lib/utils/file_writer.rb +++ b/lib/utils/file_writer.rb @@ -1,19 +1,11 @@ require 'fileutils' -require_relative 'html_formatter' module Pressa module Utils class FileWriter def self.write(path:, content:, permissions: 0o644) FileUtils.mkdir_p(File.dirname(path)) - - formatted_content = if path.end_with?('.html') - HtmlFormatter.format(content) - else - content - end - - File.write(path, formatted_content, mode: 'w') + File.write(path, content, mode: 'w') File.chmod(permissions, path) end diff --git a/lib/utils/html_formatter.rb b/lib/utils/html_formatter.rb deleted file mode 100644 index 89bf8f9..0000000 --- a/lib/utils/html_formatter.rb +++ /dev/null @@ -1,91 +0,0 @@ -module Pressa - module Utils - module HtmlFormatter - INDENT = 2 - VOID_TAGS = %w[ - area base br col embed hr img input link meta param source track wbr - ].freeze - - PLACEHOLDER_PREFIX = '%%PRESSA_PRESERVE_' - PRESERVE_PATTERNS = [ - /
Save this as a command in your Rails, or syncPeople on Rails, bundle. The command options should be as follows:
@@ -56,4 +56,3 @@ The macro I'm thinking of to invoke this is tab-triggered and will simply:โงโโ)