safe.messaging.item.line_break module

InaSAFE Disaster risk assessment tool developed by AusAid - Paragraph.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.messaging.item.line_break.LineBreak(*args, **kwargs)[source]

Bases: safe.messaging.item.text.Text

A class to model line breaks in text the messaging system

to_html(**kwargs)[source]

Render as html

Args:
None
Returns:
Str the html representation
Raises:
Errors are propagated

We pass the kwargs on to the base class so an exception is raised if invalid keywords were passed. See:

http://stackoverflow.com/questions/13124961/ how-to-pass-arguments-efficiently-kwargs-in-python

to_text()[source]

Render as plain text

Args:
None
Returns:
Str the plain text representation
Raises:
Errors are propagated