# File lib/asciidoctor/core_ext/1.8.7/string/limit_bytesize.rb, line 22
    def limit_bytesize size
      return self unless size < bytesize
      result = (unpack %(a#{size}))[0]
      result.chop! until result.empty? || (ValidTrailingCharRx.match? result)
      result
    end