Sha256: 27d9cc88c02033298483278fd924521054676bd42be653941c99207f1654d365

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'postpost'

text = Clipboard.paste
counter = '000'
Clipboard.copy(
  text.gsub(%r{\n\n<hr />\n\n}, "\n\n").gsub(/\n\n/) {
    counter = counter.next
    "\n\n<hr id=\"story_#{counter}\" />\n\n"
  }
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
postpost-0.2.1 exe/postpost