Commits

Kirill Simonov committed 019e5fb

determine_chomp -> determine_block_hints

  • Participants
  • Parent commits 74e231c

Comments (0)

Files changed (1)

lib/yaml/emitter.py

             end += 1
         self.write_indicator(u'"', False)
 
-    def determine_chomp(self, text):
+    def determine_block_hints(self, text):
         hints = u''
         if text and text[0] in u' \n\x85\u2028\u2029':
             hints += unicode(self.best_indent)
             end += 1
 
     def write_literal(self, text):
-        chomp = self.determine_chomp(text)
+        chomp = self.determine_block_hints(text)
         self.write_indicator(u'|'+chomp, True)
         self.write_indent()
         breaks = False