old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from __future__ import absolute_import
  
  from reportlab.platypus import (
      Paragraph as BaseParagraph,
      Spacer,
  )
  from reportlab.lib.styles import ParagraphStyle
  
  
  snormal = ParagraphStyle('normal')
  
  
  def Paragraph(text, style=snormal, **kw):
      if kw:
          style = ParagraphStyle('style', parent=style, **kw)
      return BaseParagraph(text, style)
  
  
  def HSpacer(width):
      return Spacer(0, width)
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from __future__ import absolute_import
  
  from reportlab.platypus import (
      Paragraph as BaseParagraph,
      Spacer,
  )
  from reportlab.lib.styles import ParagraphStyle, getSampleStyleSheet
  
  
  styles = getSampleStyleSheet()
  snormal = ParagraphStyle('normal')
  
  
  def Paragraph(text, style=snormal, **kw):
      if isinstance(style, basestring):
          style = styles[style]
  
      if kw:
          style = ParagraphStyle('style', parent=style, **kw)
      return BaseParagraph(text, style)
  
  
  def HSpacer(width):
      return Spacer(0, width)
  
subject: Select styles from the default stylesheet by naming them