| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | TEXT_MARKUP = 'text' |
||
| 2 | HTML_MARKUP = 'html' |
||
| 3 | |||
| 4 | |||
| 5 | def convert_to_another_markup( |
||
| 6 | content, |
||
| 7 | input_markup: str, |
||
| 8 | output_markup: str, |
||
| 9 | ) -> str: |
||
| 10 | # TODO - G.M - 2018-10-29 - Support for html content, deal correctly |
||
| 11 | # with line break. |
||
| 12 | if input_markup == TEXT_MARKUP and output_markup == HTML_MARKUP: |
||
| 13 | content = content.replace('\n', '<br/>') |
||
| 14 | return content |
||
| 15 |