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
Exemple #3
0
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
Exemple #4
0
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