diff --git a/generators/utils.py b/generators/utils.py index 5b0eac4..f3d9923 100644 --- a/generators/utils.py +++ b/generators/utils.py @@ -136,21 +136,21 @@ def split_overloads(methods, needs_overloading: List[str] = None): def clean_doxygen(doxygen): - replace = { - "/** ": "", - "* ": "", - "\n*/": "", - "*\n": "\n", - "{": "", - "}": "", - "": "", - "": "", - "≥": ">=", - "ü": "u", - "–": "-", - "fi": "fi", - "Ž": "", # invisible character in fast_bilateral_filter.h "FrŽdo Durand"[2] (no kidding) - } - for k, v in replace.items(): + replace = [ + ("/** ", ""), + ("* ", ""), + ("\n*/", ""), + ("*\n", "\n"), + ("{", ""), + ("}", ""), + ("", ""), + ("", ""), + ("≥", ">="), + ("ü", "u"), + ("–", "-"), + ("fi", "fi"), + ("Ž", ""), # invisible character in fast_bilateral_filter.h "FrŽdo Durand"[2] (no kidding) + ] + for k, v in replace: doxygen = doxygen.replace(k, v) return doxygen