~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/highlight.py

  • Committer: Peter Bui
  • Date: 2009-03-01 19:24:21 UTC
  • mto: (277.1.17 syntax-highlighting)
  • mto: This revision was merged to the branch mainline in revision 285.
  • Revision ID: pbui@phoenix-20090301192421-fmccnupmvmqeht65
Clarify comment for pygments_highlight

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
def pygments_highlight(path, text, style=DEFAULT_PYGMENT_STYLE):
30
30
    """ 
31
 
    Returns a list of highlighted (i.e. HTML formatted) strings and it
32
 
    replaces initial spaces with nonbreaking spaces to maintain
 
31
    Returns a list of highlighted (i.e. HTML formatted) strings and it replaces
 
32
    spaces outside of HTML tags with nonbreaking spaces to maintain
33
33
    indentation.
34
34
    """
35
35