import os
from collections import namedtuple


class DummyRecord(namedtuple('DummyRecord', ('one', 'two', 'three'))):
    """ Dummy record used for testing.

    """

    @classmethod
    def header(cls):
        return '{0:<5} {1:<5} {2:<5}{newline}'.format(
            *cls._fields, newline=os.linesep)

    def line(self):
        return '{0:<5} {1:<5} {2:<5}{newline}'.format(
            *self, newline=os.linesep)

@@ -159,17 +159,16 @@
     %22%22%22%0A
-%0A
     @cla
@@ -204,32 +204,33 @@
 %0A        return 
+u
 '%7B0:%3C5%7D %7B1:%3C5%7D %7B
@@ -238,71 +238,31 @@
 :%3C5%7D
-%7Bnewline%7D'.format(%0A            *cls._fields, newline=os.linesep
+%5Cn'.format(*cls._fields
 )%0A%0A 
@@ -295,16 +295,17 @@
  return 
+u
 '%7B0:%3C5%7D 
@@ -321,62 +321,22 @@
 :%3C5%7D
-%7Bnewline%7D'.format(%0A            *self, newline=os.linesep
+%5Cn'.format(*self
 )%0A

use the default newline character