Ejemplo n.º 1
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
Ejemplo n.º 2
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
Ejemplo n.º 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
Ejemplo n.º 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