Revision c83c0410

b/lib/build/sphinx_ext.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2011, 2012 Google Inc.
4
# Copyright (C) 2011, 2012, 2013 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
160 160
    has_test = not (test is None or test is ht.NoType)
161 161

  
162 162
    buf = StringIO()
163
    buf.write("``%s``" % rapi_name)
163
    buf.write("``%s``" % (rapi_name,))
164 164
    if has_default or has_test:
165 165
      buf.write(" (")
166 166
      if has_default:
167
        buf.write("defaults to ``%s``" % default)
167
        buf.write("defaults to ``%s``" % (default,))
168 168
        if has_test:
169 169
          buf.write(", ")
170 170
      if has_test:
171
        buf.write("must be ``%s``" % test)
171
        buf.write("must be ``%s``" % (test,))
172 172
      buf.write(")")
173 173
    yield buf.getvalue()
174 174

  
......
329 329
  """
330 330
  for name, doc in values:
331 331
    assert len(doc.splitlines()) == 1
332
    yield "``%s``" % name
333
    yield "  %s" % doc
332
    yield "``%s``" % (name,)
333
    yield "  %s" % (doc,)
334 334

  
335 335

  
336 336
def _ManPageNodeClass(*args, **kwargs):

Also available in: Unified diff