code: def split_multicell(self, text, element_name):
          "Divide (\n) a string using a given element width"
          pdf = self.pdf
          element = [element for element in self.elements
              if element['name'].lower() == element_name.lower()][0]
          style = ""
          if element['bold']: style += "B"
          if element['italic']: style += "I"
          if element['underline']: style += "U"
          pdf.set_font(element['font'],style,element['size'])
          align = {'L':'L','R':'R','I':'L','D':'R','C':'C','':''}.get(element['align']) # D/I in spanish
          if isinstance(text, unicode) and not PY3K:
              text = text.encode("latin1","ignore")
          else:
              text = str(text)
          return pdf.multi_cell(w=element['x2']-element['x1'],
                               h=element['y2']-element['y1'],
                               txt=text,align=align,split_only=Truef split_multicell(self, text, element_name):
          "Divide (\n) a string using a given element width"
          pdf = self.pdf
          element = [element for element in self.elements
              if element['name'].lower() == element_name.lower()][0]
          style = ""
          if element['bold']: style += "B"
          if element['italic']: style += "I"
          if element['underline']: style += "U"
          pdf.set_font(element['font'],style,element['size'])
          align = {'L':'L','R':'R','I':'L','D':'R','C':'C','':''}.get(element['align']) # D/I in spanish
          if isinstance(text, unicode) and not PY3K:
              text = text.encode("latin1","ignore")
          else:
              text = str(text)
          return pdf.multi_cell(w=element['x2']-element['x1'],
                               h=element['y2']-element['y1'],
                               txt=text,align=align,split_only=True)
docs: Divide (\n) a string using a given element width