~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/worksheet/rst.py

  • Committer: Nick Chadwick
  • Date: 2009-03-03 01:48:48 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090303014848-dyurvmtmbneohd7f
Modified the setup script to include '.txt' files.

This allows the automatic inclusion of definitions.txt from the rst
code, as it is needed by all worksheets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
1
2
#
2
3
# Natural Language Toolkit: Documentation generation script
3
4
#
1696
1697
            writer=CustomizedHTMLWriter(), reader=CustomizedReader())
1697
1698
        match = _OUTPUT_RE.search(output)
1698
1699
        if match:
1699
 
            return "<div>" + match.group(1) + "</div>"
 
1700
            return match.group(1)
1700
1701
        else:
1701
1702
            raise ValueError('Could not process exercise definition')
1702
1703