#!/usr/bin/env ruby # frozen_string_literal: true require 'postpost' text = Clipboard.paste Clipboard.copy(text.gsub(/\n\n/, "\n\n<hr />\n\n"))