Parcourir la source

[2157] added a note to explain why empty string is required

Yoshitaka Aharen il y a 12 ans
Parent
commit
ab9c7fa434
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/bin/auth/gen-statisticsitems.py.pre.in

+ 3 - 1
src/bin/auth/gen-statisticsitems.py.pre.in

@@ -219,7 +219,9 @@ def generate_docfile(docfile, def_mtime):
                     if word == xmldocument_command_name:
                         command = ElementTree.SubElement(sim_para, 'command')
                         command.text = word
-                        # append empty string for trailing text
+                        # at this point command.tail is None
+                        # append empty string as trailing text for the next
+                        # word so it can be concatinated with trailing words
                         command.tail = ''
                         prev = command
                     else: