Opened 12 years ago

Closed 6 years ago

#3100 defect closed wontfix (wontfix)

<span class="index" value="" /> causes runtime error

Reported by: jelkner Owned by:
Priority: low Milestone:
Component: lore Keywords: EndOfLore
Cc: Branch:
Author: jelner

Description (last modified by therve)

Creating indexing markup with an empty string for value:

<span class="index" value="" />

causes a runtime error:

Traceback (most recent call last):
  File "/home/jelkner/bin/obpdoc", line 21, in <module>
    run()
  File "/home/jelkner/lib/python/obpdoc/scripts/lorescript.py", line 190, in run
    result = runGivenOptions(opt)
  File "/home/jelkner/lib/python/obpdoc/scripts/lorescript.py", line 171, in runGivenOptions
    walker.generate(book, indexer, toc)
  File "/home/jelkner/lib/python/obpdoc/process.py", line 58, in generate
    self._writeIndex(book, indexer, linkrel)
  File "/home/jelkner/lib/python/obpdoc/process.py", line 65, in _writeIndex
    output = self.generator.generateIndex(book, indexer, linkrel)
  File "/home/jelkner/lib/python/obpdoc/default.py", line 45, in generateIndex
    document = indexer.toDocument()
  File "/home/jelkner/lib/python/obpdoc/indexer.py", line 212, in toDocument
    body.appendChild(self.generateIndexBody())
  File "/home/jelkner/lib/python/obpdoc/indexer.py", line 257, in generateIndexBody
    initial = key[0].upper()
IndexError: string index out of range

Change History (4)

comment:1 Changed 12 years ago by therve

Description: modified (diff)

comment:2 Changed 10 years ago by Jean-Paul Calderone

Owner: changed from spiv to khorn

comment:3 Changed 9 years ago by <automation>

Owner: khorn deleted

comment:4 Changed 6 years ago by khorn

Keywords: EndOfLore added
Resolution: wontfix
Status: newclosed

Lore is no longer being used for Twisted documentation, and is being deprecated, prior to eventual removal, per #6907.

This issue will not be fixed.

Note: See TracTickets for help on using tickets.