From: <br...@or...> - 2003-01-17 18:51:25
|
I'm getting an uncaught exception from buildhtml.py in the docutils snapshot of Jan 8th evening. http://docutils.sf.net/docutils-snapshot.tgz (This is not quite the latest version, but the problem doesn't sound related to the changes reported on the list since then.) This is in the python 2.2 that ships with Mac OS X 10.2.3 as /usr/bin/python. Here's a small input file and the exception it triggers: % cat bug3.txt Ways of encoding string length ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. _lengthed-string: `lengthed string`_ .. _unlengthed-string: `unlengthed string`_ .. ### the above might work as external anchors (I don't know yet), .. # but earlier forms (which have no explicit target but just .. # precede the targets below) did not work as external anchors, .. # since the HTML targets used were "The" and "permits". .. # ... but it turns out that the above forms (might) trigger an uncaught exception! .. _lengthed string: The_ .. _unlengthed string: permits_ .. # those above links are a kluge! But I don't know a better valid way of .. # getting what I want, which is an inline target that displays nothing. The definition of lengthed string is like this. But use of an unlengthed string permits that. [end] % /downloads/python/docutils/tools/buildhtml.py /// Processing directory: /Users/bruce/Documents ::: Processing .txt: bug3.txt Traceback (most recent call last): File "/downloads/python/docutils/tools/buildhtml.py", line 218, in ? Builder().run() File "/downloads/python/docutils/tools/buildhtml.py", line 162, in run os.path.walk(directory, self.visit, recurse) File "/usr/lib/python2.2/posixpath.py", line 279, in walk func(arg, top, names) File "/downloads/python/docutils/tools/buildhtml.py", line 174, in visit self.process_txt(directory, name) File "/downloads/python/docutils/tools/buildhtml.py", line 193, in process_txt settings=settings) File "/usr/lib/python2.2/site-packages/docutils/core.py", line 275, in publish_file pub.publish() File "/usr/lib/python2.2/site-packages/docutils/core.py", line 173, in publish self.apply_transforms(document) File "/usr/lib/python2.2/site-packages/docutils/core.py", line 157, in apply_transforms document.transformer.apply_transforms() File "/usr/lib/python2.2/site-packages/docutils/transforms/__init__.py", line 165, in apply_transforms transform.apply() File "/usr/lib/python2.2/site-packages/docutils/transforms/references.py", line 212, in apply self.resolve_indirect_target(target) File "/usr/lib/python2.2/site-packages/docutils/transforms/references.py", line 224, in resolve_indirect_target self.one_indirect_target(reftarget) # multiply indirect AttributeError: IndirectHyperlinks instance has no attribute 'one_indirect_target' Exit 1 % - Bruce Smith |