Format the given string using the given formatter.
(self, s, formatter='minimal')
| 154 | } |
| 155 | |
| 156 | def format_string(self, s, formatter='minimal'): |
| 157 | """Format the given string using the given formatter.""" |
| 158 | if not isinstance(formatter, collections.Callable): |
| 159 | formatter = self._formatter_for_name(formatter) |
| 160 | if formatter is None: |
| 161 | output = s |
| 162 | else: |
| 163 | output = formatter(s) |
| 164 | return output |
| 165 | |
| 166 | @property |
| 167 | def _is_xml(self): |
no test coverage detected