class_docstr: Baseclass for the `RepresentationPrinter` prettyprinter that is used to
  generate pretty reprs of objects.
  
  Contrary to the `RepresentationPrinter` this printer knows nothing
  about the default pprinters or the `_repr_pretty_` callback method.
class_docstr_tok: ["Baseclass","for","the","`","RepresentationPrinter","`","prettyprinter","that","is","used","to","generate","pretty","reprs","of","objects",".","Contrary","to","the","`","RepresentationPrinter","`","this","printer","knows","nothing","about","the","default","pprinters","or","the","`","_repr_pretty_","`","callback","method","."]
docstr: Add literal text to the output.
docstr_tok: ["Add","literal","text","to","the","output","."]
code: def text(self, obj):
      """Add literal text to the output."""
      width = len(obj)
      if self.buffer:
          text = self.buffer[-1]
          if not isinstance(text, Text):
              text = Text()
              self.buffer.append(text)
          text.add(obj, width)
          self.buffer_width += width
          self._break_outer_groups()
      else:
          self.output.write(obj)
          self.output_width += width
  
imports: from __future__ import absolute_import, division, print_function
  import datetime
  import platform
  import re
  import sys
  import types
  from collections import deque
  from contextlib import contextmanager
  from io import StringIO
  from hypothesis.internal.compat import PY3, cast_unicode, get_stream_enc, string_types
label_desc: Use image node_id 3 for calling the PrettyPrinter obj's underlying member method code with example usage: obj.text(obj) without return types