def _xml_mark_author(author, text): "Mark the text with bold face if author is in the list of marked authors" if config.has_key("mark_author") and author.strip() in config.get( "mark_author"): return '<author marked="True">%s</author>' % text else: return '<author marked="False">%s</author>' % text
def _rst_mark_author(author, text): "Mark the text with bold face if author is in the list of marked authors" if config.has_key("mark_author") and author.strip() in config.get( "mark_author"): return "_%s_" % text else: return text
def _xml_mark_author(author, text): "Mark the text with bold face if author is in the list of marked authors" if config.has_key("mark_author") and author.strip() in config.get("mark_author") : return '<author marked="True">%s</author>' % text else: return '<author marked="False">%s</author>' % text
def _rst_mark_author(author, text) : "Mark the text with bold face if author is in the list of marked authors" if config.has_key("mark_author") and author.strip() in config.get("mark_author") : return "_%s_" % text else: return text