Index: /pyyaml/trunk/lib/yaml/emitter.py
===================================================================
--- /pyyaml/trunk/lib/yaml/emitter.py	(revision 300)
+++ /pyyaml/trunk/lib/yaml/emitter.py	(revision 304)
@@ -1010,14 +1010,11 @@
     def determine_block_hints(self, text):
         hints = u''
-        if text and text[0] in u' \n\x85\u2028\u2029':
-            hints += unicode(self.best_indent)
-        tail = text[-2:]
-        while len(tail) < 2:
-            tail = u' '+tail
-        if tail[-1] in u'\n\x85\u2028\u2029':
-            if tail[-2] in u'\n\x85\u2028\u2029':
+        if text:
+            if text[0] in u' \n\x85\u2028\u2029':
+                hints += unicode(self.best_indent)
+            if text[-1] not in u'\n\x85\u2028\u2029':
+                hints += u'-'
+            elif len(text) == 1 or text[-2] in u'\n\x85\u2028\u2029':
                 hints += u'+'
-        else:
-            hints += u'-'
         return hints
 
@@ -1025,8 +1022,8 @@
         hints = self.determine_block_hints(text)
         self.write_indicator(u'>'+hints, True)
-        self.write_indent()
-        leading_space = False
+        self.write_line_break()
+        leading_space = True
         spaces = False
-        breaks = False
+        breaks = True
         start = end = 0
         while end <= len(text):
@@ -1076,6 +1073,6 @@
         chomp = self.determine_block_hints(text)
         self.write_indicator(u'|'+chomp, True)
-        self.write_indent()
-        breaks = False
+        self.write_line_break()
+        breaks = True
         start = end = 0
         while end <= len(text):
