/usr/lib/ruby/1.8/rt/rt2txt-lib.rb is in librt-ruby1.8 1.0.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/ruby
require 'rt/w3m'
require 'rt/rt2html-lib'
module RT
class RT2TXTVisitor < RT2HTMLVisitor
OUTPUT_SUFFIX = "txt"
INCLUDE_SUFFIX = ["txt"]
def visit(parsed)
W3M::html2txt(super)
end
end # RT2TXTVisitor
end
$Visitor_Class = RT::RT2TXTVisitor
|