mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 16:32:13 +00:00
Apparently <SPC> means ' ' in the input test data. Sigh again.
This commit is contained in:
@@ -34,7 +34,7 @@ for tml_file in tml_files:
|
||||
last_line = first_line + 1
|
||||
while last_line < len(contents) and '+++' not in contents[last_line]:
|
||||
last_line += 1
|
||||
in_yaml = ''.join(contents[first_line : last_line]).replace(r'\%', '%').replace(r'\#', '#').replace('<TAB>', '\t')
|
||||
in_yaml = ''.join(contents[first_line : last_line]).replace(r'\%', '%').replace(r'\#', '#').replace('<TAB>', '\t').replace('<SPC>', ' ')
|
||||
tmp_file = open('tmp', 'w')
|
||||
tmp_file.write(in_yaml)
|
||||
tmp_file.close()
|
||||
|
||||
@@ -4,6 +4,6 @@ Folding:
|
||||
as a line feed"
|
||||
Chomping: |
|
||||
Clipped empty lines
|
||||
<SPC>
|
||||
|
||||
\
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|+
|
||||
ab
|
||||
<SPC>
|
||||
<SPC><SPC>
|
||||
|
||||
|
||||
...
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Leading comment line spaces are
|
||||
# neither content nor indentation.
|
||||
<SPC><SPC><SPC><SPC>
|
||||
|
||||
Not indented:
|
||||
By one space: |
|
||||
By four
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
" 1st non-empty
|
||||
|
||||
2nd non-empty<SPC>
|
||||
2nd non-empty
|
||||
3rd non-empty "
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Comment
|
||||
<SPC><SPC><SPC>
|
||||
|
||||
|
||||
\
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
a
|
||||
b<SPC><SPC>
|
||||
b
|
||||
c
|
||||
d
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
|
||||
<SPC>
|
||||
<SPC><SPC>
|
||||
|
||||
|
||||
literal
|
||||
<SPC><SPC><SPC>
|
||||
<SPC><SPC>
|
||||
|
||||
|
||||
text
|
||||
|
||||
# Comment
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
# Comments:
|
||||
strip: |-
|
||||
# text
|
||||
<SPC><SPC>
|
||||
|
||||
# Clip
|
||||
# comments:
|
||||
|
||||
clip: |
|
||||
# text
|
||||
<SPC>
|
||||
|
||||
# Keep
|
||||
# comments:
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
foo: 1
|
||||
|
||||
bar: 2
|
||||
<SPC><SPC><SPC><SPC>
|
||||
|
||||
text: |
|
||||
a
|
||||
<SPC><SPC><SPC><SPC>
|
||||
|
||||
b
|
||||
|
||||
c
|
||||
<SPC>
|
||||
|
||||
d
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
1st non-empty
|
||||
|
||||
2nd non-empty<SPC>
|
||||
2nd non-empty
|
||||
3rd non-empty
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
>-
|
||||
trimmed
|
||||
<SPC><SPC>
|
||||
<SPC>
|
||||
|
||||
|
||||
|
||||
as
|
||||
space
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
a: |
|
||||
ab
|
||||
<SPC>
|
||||
|
||||
cd
|
||||
ef
|
||||
<SPC>
|
||||
|
||||
|
||||
...
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
>
|
||||
foo<SPC>
|
||||
<SPC>
|
||||
foo
|
||||
|
||||
bar
|
||||
|
||||
baz
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|-
|
||||
ab
|
||||
<SPC>
|
||||
<SPC>
|
||||
|
||||
|
||||
...
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"folded<SPC>
|
||||
"folded
|
||||
to a space,
|
||||
<SPC>
|
||||
|
||||
to a line feed, or \
|
||||
\ non-content"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
' 1st non-empty
|
||||
|
||||
2nd non-empty<SPC>
|
||||
2nd non-empty
|
||||
3rd non-empty '
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
- |
|
||||
detected
|
||||
- >
|
||||
<SPC>
|
||||
<SPC><SPC>
|
||||
|
||||
|
||||
# detected
|
||||
- |1
|
||||
explicit
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"
|
||||
foo<SPC>
|
||||
<SPC>
|
||||
foo
|
||||
|
||||
bar
|
||||
|
||||
baz
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
>
|
||||
ab
|
||||
cd
|
||||
<SPC>
|
||||
|
||||
ef
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user