~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/XMLFormatting.py

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
                        raise ValueError("unknown tag name: %s"%tagName)
35
35
 
36
36
        def _CharacterDataHandler(self,data):
37
 
                self._commandList.append(data)
 
37
                cmdList=self._commandList
 
38
                if cmdList and isinstance(cmdList[-1],basestring):
 
39
                        cmdList[-1]+=data
 
40
                else:
 
41
                        cmdList.append(data)
38
42
 
39
43
        def parse(self,XMLText):
40
44
                try:
42
46
                except:
43
47
                        log.error("XML: %s"%XMLText,exc_info=True)
44
48
                return self._commandList
45