summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2008-11-30 13:35:48 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2008-11-30 13:35:48 +0000
commitcc2948fea5b8d59a8bf049caa4ba701cecad310d (patch)
tree12700da210a550fdc0b46ed8e5c2cfaf139186f3
parent402cfff1962000955e9cdc4622f5fce00521400f (diff)
downloadpyyaml-cc2948fea5b8d59a8bf049caa4ba701cecad310d.tar.gz
determine_chomp -> determine_block_hints
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@300 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r--lib/yaml/emitter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/emitter.py b/lib/yaml/emitter.py
index 139ea69..b04ee9e 100644
--- a/lib/yaml/emitter.py
+++ b/lib/yaml/emitter.py
@@ -1007,7 +1007,7 @@ class Emitter(object):
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)
@@ -1073,7 +1073,7 @@ class Emitter(object):
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