From 4d1f378d9715bf405b1ff2854bff6608f30ee303 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 3 Jun 2013 14:22:34 +0000 Subject: Anchors and monospace markup for Wiki output. svn path=/trunk/; revision=5344 --- rpkid/rpki-confgen | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rpkid/rpki-confgen b/rpkid/rpki-confgen index cf66312e..5189cd0a 100755 --- a/rpkid/rpki-confgen +++ b/rpkid/rpki-confgen @@ -55,13 +55,13 @@ class Option(object): return x def to_wiki(self, f): - f.write("\n%s::" % self.name) + f.write("\n`%s`:: [=#%s]" % (self.name, self.name)) for d in self.doc: f.write("\n%s\n" % item_wrapper.fill(d)) if self.value is None: - f.write("\n%s\n" % item_wrapper.fill("No default value")) + f.write("\n%s\n" % item_wrapper.fill("No default value.")) else: - f.write("\n%s\n" % item_wrapper.fill("Default: %s" % self.value)) + f.write("\n%s\n" % item_wrapper.fill("Default: {{{%s}}}" % self.value)) def to_conf(self, f, width): for d in self.doc: @@ -110,8 +110,8 @@ Generated from ''' + ident + ''' by $Id$ }}} -= ![''' + self.name + '''] section = -''') += ![%s] section = #%s +''' % (self.name, self.name)) for d in self.doc: f.write("\n%s\n" % text_wrapper.fill(d)) for o in self.options: -- cgit v1.2.3