Revision dce20078 lib/utils/text.py
b/lib/utils/text.py | ||
---|---|---|
268 | 268 |
""" |
269 | 269 |
assert self._indent >= 0 |
270 | 270 |
|
271 |
self._fh.write(self._indent * self.INDENT_STR) |
|
272 |
|
|
273 | 271 |
if args: |
274 |
self._fh.write(txt % args)
|
|
272 |
line = txt % args
|
|
275 | 273 |
else: |
276 |
self._fh.write(txt) |
|
274 |
line = txt |
|
275 |
|
|
276 |
if line: |
|
277 |
# Indent only if there's something on the line |
|
278 |
self._fh.write(self._indent * self.INDENT_STR) |
|
279 |
|
|
280 |
self._fh.write(line) |
|
277 | 281 |
|
278 | 282 |
self._fh.write("\n") |
279 | 283 |
|
Also available in: Unified diff