[Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML CommentFormatter.py,1.22,1.23 FormatStrategy.py,1.35,1.36
Stefan Seefeld stefan at synopsis.fresco.orgThu Dec 4 20:01:50 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/demo/C++/Boost synopsis.py,1.7,1.8
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML Formatter.py,1.13,1.14
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis/Formatters/HTML
In directory frida:/tmp/cvs-serv656/Synopsis/Formatters/HTML
Modified Files:
CommentFormatter.py FormatStrategy.py
Log Message:
fix little typos
Index: CommentFormatter.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Formatters/HTML/CommentFormatter.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -p -d -r1.22 -r1.23
--- CommentFormatter.py 14 Nov 2003 14:51:09 -0000 1.22
+++ CommentFormatter.py 4 Dec 2003 20:01:44 -0000 1.23
@@ -44,7 +44,7 @@ class CommentFormatter:
# Let each strategy format the text in turn
for method in self.__format_methods:
text = method(page, decl, text)
- return text
+ return text
def format_summary(self, page, decl):
"""Formats the summary of the first comment of the given
@@ -79,9 +79,9 @@ class CommentFormatterStrategy(Parametri
@param text the comment text to format
"""
- pass
+ return text
- def format_summary(self, page, decl, summary):
+ def format_summary(self, page, decl, text):
"""Format the given comment summary
@param page the Page to use for references and determining the correct
relative filename.
@@ -89,7 +89,7 @@ class CommentFormatterStrategy(Parametri
@param summary the comment summary to format
"""
- pass
+ return text
class QuoteHTML(CommentFormatterStrategy):
"""A formatter that quotes HTML characters like the angle brackets and the
Index: FormatStrategy.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Formatters/HTML/FormatStrategy.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -d -r1.35 -r1.36
--- FormatStrategy.py 19 Nov 2003 17:15:06 -0000 1.35
+++ FormatStrategy.py 4 Dec 2003 20:01:44 -0000 1.36
@@ -461,10 +461,11 @@ class DetailAST(BaseAST):
class DetailCommenter(Default):
"""Adds summary comments to all declarations"""
+
def format_declaration(self, decl):
+
text = self.processor.comments.format(self.page, decl)
- if text:
- return desc(text)
+ if text: return desc(text)
return ''
class ClassHierarchySimple(Strategy):
@@ -534,13 +535,16 @@ class ClassHierarchyGraph(ClassHierarchy
class Inheritance(Default):
"""Prints just the name of each declaration, with a link to its doc"""
+
def format_declaration(self, decl, label=None):
+
if not label: label = decl.name()[-1]
fullname = Util.ccolonName(decl.name(), self.formatter.scope())
title = decl.type() + " " + anglebrackets(fullname)
return self.reference(decl.name(), label=label, title=title) + ' '
def format_function(self, decl):
+
return self.format_declaration(decl, label=decl.realname()[-1])
def format_operation(self, decl): return self.format_function(decl)
- Previous message: [Synopsis-changes] Synopsis/Synopsis/demo/C++/Boost synopsis.py,1.7,1.8
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatters/HTML Formatter.py,1.13,1.14
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list