From: Yoshitaka Aharen Date: Fri, 11 Jan 2013 05:07:28 +0000 (+0900) Subject: [2157] add some notes to generate_docfile X-Git-Tag: bind10-1.1.0beta1-release~85^2~5^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acc630c2e40165f605aad3dde959bc2f3871ea6b;p=thirdparty%2Fkea.git [2157] add some notes to generate_docfile --- diff --git a/src/bin/auth/gen-statisticsitems.py.pre.in b/src/bin/auth/gen-statisticsitems.py.pre.in index d50804711e..43f81fdc0e 100755 --- a/src/bin/auth/gen-statisticsitems.py.pre.in +++ b/src/bin/auth/gen-statisticsitems.py.pre.in @@ -219,6 +219,7 @@ 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 command.tail = '' prev = command else: @@ -226,6 +227,7 @@ def generate_docfile(docfile, def_mtime): sim_para.text += word + ' ' else: prev.tail += word + ' ' + # remove extra trailing whitespaces sim_para.text = sim_para.text.rstrip() if prev is not None: prev.tail = prev.tail.rstrip()