#!/usr/bin/python import monkDebug as debug import sys import monkTools import re ## ## @brief Transcode balise: ## \n\n ==>
## @param[in] value String to transform. ## @return Transformed string. ## def transcode(value): value = re.sub(r'\r\n', r'\n', value) value = re.sub(r'\n\n', r'
', value) value = re.sub(r'
', r'
\n', value) return value