Ticket #219: pyyaml-ticket-219.patch
| File pyyaml-ticket-219.patch, 1.1 KB (added by py4fun@…, 17 months ago) |
|---|
-
tests/data/tab-in-scalar.data
1 L S -
tests/data/tab-in-scalar.canonical
1 %YAML 1.1 2 --- 3 "L\tS" -
lib/yaml/scanner.py
1322 1322 1323 1323 def scan_plain_spaces(self, indent, start_mark): 1324 1324 # See the specification for details. 1325 # The specification is really confusing about tabs in plain scalars.1326 # We just forbid them completely. Do not use tabs in YAML!1327 1325 chunks = [] 1328 1326 length = 0 1329 while self.peek(length) in u' ':1327 while self.peek(length) in u' \t': 1330 1328 length += 1 1331 1329 whitespaces = self.prefix(length) 1332 1330 self.forward(length)
