Improved escaped character formatting in docs

This commit is contained in:
hbristow 2013-08-09 15:15:08 +10:00
parent a659562c36
commit 7aaefd4dce
2 changed files with 7 additions and 3 deletions

View File

@ -92,7 +92,11 @@ def toUnderCase(text):
def stripTags(text):
upper = lambda pattern: pattern.group(1).upper()
text = re.sub('<code>(.*?)</code>', upper, text)
text = re.sub('<(.*?)>', '', text)
text = re.sub('<([^=\s].*?)>', '', text)
text = re.sub('&lt', '<', text)
text = re.sub('&gt', '>', text)
text = re.sub('&le', '<=', text)
text = re.sub('&ge', '>=', text)
return text
def qualify(text, name):

View File

@ -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();
% <a href="matlab: cv.buildInformation()">cv.buildInformation();</a>
%
% <strong>OTHER RESOURCES</strong>
% OpenCV documentation online: <a href="matlab: web('http://docs.opencv.org', '-browser')">http://docs.opencv.org</a>
% OpenCV issue tracker: <a href="matlab: web('http://code.opencv.org', '-browser')">http://code.opencv.org</a>
% OpenCV Q&A: <a href="matlab: web('http://answers.opencv.org', '-browser')">http://answers.opencv.org</a>
%
% See also: cv.help, cv.buildInformation
% See also: cv.help, <a href="matlab: cv.buildInformation()">cv.buildInformation</a>
%
% Copyright {{ time.strftime("%Y", time.localtime()) }} The OpenCV Foundation
%