aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-06-03 14:26:55 +0000
committerRob Austein <sra@hactrn.net>2013-06-03 14:26:55 +0000
commit284eac57e26471bbf39c43d994d5c88c40cfc07f (patch)
tree9969cceeb39cbedeaee448bca4605bcf74790444
parent4d1f378d9715bf405b1ff2854bff6608f30ee303 (diff)
Cleanup
svn path=/trunk/; revision=5345
-rwxr-xr-xrpkid/rpki-confgen8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpkid/rpki-confgen b/rpkid/rpki-confgen
index 5189cd0a..a20c9691 100755
--- a/rpkid/rpki-confgen
+++ b/rpkid/rpki-confgen
@@ -31,7 +31,7 @@ space8 = " " * 8
text_wrapper = textwrap.TextWrapper()
conf_wrapper = textwrap.TextWrapper(initial_indent = "# ", subsequent_indent = "# ")
-item_wrapper = textwrap.TextWrapper(initial_indent = space2, subsequent_indent = space2)
+wiki_wrapper = textwrap.TextWrapper(initial_indent = space2, subsequent_indent = space2)
xml6_wrapper = textwrap.TextWrapper(initial_indent = space6, subsequent_indent = space6)
xml8_wrapper = textwrap.TextWrapper(initial_indent = space8, subsequent_indent = space8)
@@ -57,11 +57,11 @@ class Option(object):
def to_wiki(self, f):
f.write("\n`%s`:: [=#%s]" % (self.name, self.name))
for d in self.doc:
- f.write("\n%s\n" % item_wrapper.fill(d))
+ f.write("\n%s\n" % wiki_wrapper.fill(d))
if self.value is None:
- f.write("\n%s\n" % item_wrapper.fill("No default value."))
+ f.write("\n%s\n" % wiki_wrapper.fill("No default value."))
else:
- f.write("\n%s\n" % item_wrapper.fill("Default: {{{%s}}}" % self.value))
+ f.write("\n%s\n" % wiki_wrapper.fill("Default: {{{%s}}}" % self.value))
def to_conf(self, f, width):
for d in self.doc: