Conditions | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | TEXT_MARKUP = 'text' |
||
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 |