Index: /pyyaml/trunk/lib/yaml/dumper.py
===================================================================
--- /pyyaml/trunk/lib/yaml/dumper.py	(revision 137)
+++ /pyyaml/trunk/lib/yaml/dumper.py	(revision 152)
@@ -10,4 +10,5 @@
 
     def __init__(self, stream,
+            default_style=None, default_flow_style=None,
             canonical=None, indent=None, width=None,
             allow_unicode=None, line_break=None,
@@ -20,5 +21,6 @@
                 explicit_start=explicit_start, explicit_end=explicit_end,
                 version=version, tags=tags)
-        Representer.__init__(self)
+        Representer.__init__(self, default_style=default_style,
+                default_flow_style=default_flow_style)
         Resolver.__init__(self)
 
@@ -26,4 +28,5 @@
 
     def __init__(self, stream,
+            default_style=None, default_flow_style=None,
             canonical=None, indent=None, width=None,
             allow_unicode=None, line_break=None,
@@ -36,5 +39,6 @@
                 explicit_start=explicit_start, explicit_end=explicit_end,
                 version=version, tags=tags)
-        SafeRepresenter.__init__(self)
+        SafeRepresenter.__init__(self, default_style=default_style,
+                default_flow_style=default_flow_style)
         Resolver.__init__(self)
 
@@ -42,4 +46,5 @@
 
     def __init__(self, stream,
+            default_style=None, default_flow_style=None,
             canonical=None, indent=None, width=None,
             allow_unicode=None, line_break=None,
@@ -52,5 +57,6 @@
                 explicit_start=explicit_start, explicit_end=explicit_end,
                 version=version, tags=tags)
-        Representer.__init__(self)
+        Representer.__init__(self, default_style=default_style,
+                default_flow_style=default_flow_style)
         Resolver.__init__(self)
 
Index: /pyyaml/trunk/lib/yaml/representer.py
===================================================================
--- /pyyaml/trunk/lib/yaml/representer.py	(revision 151)
+++ /pyyaml/trunk/lib/yaml/representer.py	(revision 152)
@@ -27,5 +27,7 @@
     yaml_multi_representers = {}
 
-    def __init__(self):
+    def __init__(self, default_style=None, default_flow_style=None):
+        self.default_style = default_style
+        self.default_flow_style = default_flow_style
         self.represented_objects = {}
 
@@ -97,4 +99,6 @@
 
     def represent_scalar(self, tag, value, style=None):
+        if style is None:
+            style = self.default_style
         return ScalarNode(tag, value, style=style)
 
@@ -107,4 +111,6 @@
                 best_style = False
             value.append(self.represent_data(item))
+        if flow_style is None:
+            flow_style = self.default_flow_style
         if flow_style is None:
             flow_style = best_style
@@ -134,4 +140,6 @@
                     best_style = False
                 value.append((node_key, node_value))
+        if flow_style is None:
+            flow_style = self.default_flow_style
         if flow_style is None:
             flow_style = best_style
Index: /pyyaml/trunk/lib/yaml/__init__.py
===================================================================
--- /pyyaml/trunk/lib/yaml/__init__.py	(revision 147)
+++ /pyyaml/trunk/lib/yaml/__init__.py	(revision 152)
@@ -135,4 +135,5 @@
 
 def dump_all(documents, stream=None, Dumper=Dumper,
+        default_style=None, default_flow_style=None,
         canonical=None, indent=None, width=None,
         allow_unicode=None, line_break=None,
@@ -151,5 +152,7 @@
         stream = StringIO()
         getvalue = stream.getvalue
-    dumper = Dumper(stream, canonical=canonical, indent=indent, width=width,
+    dumper = Dumper(stream, default_style=default_style,
+            default_flow_style=default_flow_style,
+            canonical=canonical, indent=indent, width=width,
             allow_unicode=allow_unicode, line_break=line_break,
             encoding=encoding, version=version, tags=tags,
