Handle text with attributes. We’re a base class: there are different presentation classes (one, for example, uses overstrikes to handle bold and underlining, while another using ANSI escape sequences.
Constants
ATTR_MAP = {\n"b" => BOLD,\n"code" => CODE,\n"em" => ITALIC,\n"i" => ITALIC,\n"tt" => CODE\n}
AttrChar = Struct.new :char, :attr
BOLD = 1
CODE = 4
ITALIC = 2
Files
- lib/rdoc/ri/formatter.rb