New in version 2.0.
Format input_lines as regression test:
abjad> input_lines = '''
... staff = Staff("c'8 d'8 e'8 f'8")
... spannertools.BeamSpanner(staff.leaves)
... f(staff)
...
... tuplettools.FixedDurationTuplet(Duration(2, 8), staff[:3])
... f(staff)
... '''
abjad> iotools.format_input_lines_as_regression_test(input_lines) # doctest: +SKIP
staff = Staff("c'8 d'8 e'8 f'8")
spannertools.BeamSpanner(staff.leaves)
r'''
\new Staff {
c'8 [
d'8
e'8
f'8 ]
}
'''
tuplettools.FixedDurationTuplet(Duration(2, 8), staff[:3])
r'''
\new Staff {
\times 2/3 {
c'8 [
d'8
e'8
}
f'8 ]
}
assert componenttools.is_well_formed_component(staff)
assert staff.format == "\\new Staff {\n\t\\times 2/3 {\n\t\tc'8 [\n\t\td'8\n\t\te'8\n\t}\n\tf'8 ]\n}"
'''
Format expressions intelligently.
Treat blank lines intelligently.
Remove line-final hash characters.
Used when writing tests.