Popular recipes tagged "indent"http://code.activestate.com/recipes/tags/indent/2014-02-19T12:53:03-08:00ActiveState Code RecipesString templates with adaptive indenting (Python)
2014-02-19T12:53:03-08:00Sander Evershttp://code.activestate.com/recipes/users/4173111/http://code.activestate.com/recipes/578835-string-templates-with-adaptive-indenting/
<p style="color: grey">
Python
recipe 578835
by <a href="/recipes/users/4173111/">Sander Evers</a>
(<a href="/recipes/tags/formatter/">formatter</a>, <a href="/recipes/tags/indent/">indent</a>, <a href="/recipes/tags/templating/">templating</a>).
</p>
<p>An extension of Python's <code>'Hello {fieldname}!'.format(fieldname='world')</code> functionality for multi-line strings. When <code>{fieldname}</code> is indented, all the lines in the inserted <code>fieldvalue</code> are indented to the same amount.</p>
Indent a string (Python)
2009-08-05T06:26:09-07:00tat.wrighthttp://code.activestate.com/recipes/users/4171357/http://code.activestate.com/recipes/576867-indent-a-string/
<p style="color: grey">
Python
recipe 576867
by <a href="/recipes/users/4171357/">tat.wright</a>
(<a href="/recipes/tags/indent/">indent</a>).
</p>
<p>Indent a string.</p>
Reindenter (Python)
2008-09-01T04:26:45-07:00Robert Lujohttp://code.activestate.com/recipes/users/4044016/http://code.activestate.com/recipes/576475-reindenter/
<p style="color: grey">
Python
recipe 576475
by <a href="/recipes/users/4044016/">Robert Lujo</a>
(<a href="/recipes/tags/indent/">indent</a>, <a href="/recipes/tags/text/">text</a>).
Revision 3.
</p>
<p>Probably this is done for lots of times, but nevertheless I give my verybasicimplementation.</p>