diff --git a/modules/matlab/generator/filters.py b/modules/matlab/generator/filters.py index d712c321cb..0ae371c4c0 100644 --- a/modules/matlab/generator/filters.py +++ b/modules/matlab/generator/filters.py @@ -92,7 +92,11 @@ def toUnderCase(text): def stripTags(text): upper = lambda pattern: pattern.group(1).upper() text = re.sub('(.*?)', upper, text) - text = re.sub('<(.*?)>', '', text) + text = re.sub('<([^=\s].*?)>', '', text) + text = re.sub('<', '<', text) + text = re.sub('>', '>', text) + text = re.sub('&le', '<=', text) + text = re.sub('&ge', '>=', text) return text def qualify(text, name): diff --git a/modules/matlab/generator/templates/template_map_base.m b/modules/matlab/generator/templates/template_map_base.m index 5bea782d17..7c2cc2bc85 100644 --- a/modules/matlab/generator/templates/template_map_base.m +++ b/modules/matlab/generator/templates/template_map_base.m @@ -43,14 +43,14 @@ % bug report to the OpenCV team, you can get a printout of diagnostic % information to submit along with your report by typing: % -% cv.buildInformation(); +% cv.buildInformation(); % % OTHER RESOURCES % OpenCV documentation online: http://docs.opencv.org % OpenCV issue tracker: http://code.opencv.org % OpenCV Q&A: http://answers.opencv.org % -% See also: cv.help, cv.buildInformation +% See also: cv.help, cv.buildInformation % % Copyright {{ time.strftime("%Y", time.localtime()) }} The OpenCV Foundation %