2
0
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:
Zach Laine
2017-05-01 20:47:49 -05:00
parent d0012784f2
commit 3f7e0cba2c
20 changed files with 34 additions and 34 deletions

View File

@@ -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()

View File

@@ -4,6 +4,6 @@ Folding:
as a line feed"
Chomping: |
Clipped empty lines
<SPC>
\

View File

@@ -1,6 +1,6 @@
|+
ab
<SPC>
<SPC><SPC>
...

View File

@@ -1,6 +1,6 @@
# Leading comment line spaces are
# neither content nor indentation.
<SPC><SPC><SPC><SPC>
Not indented:
By one space: |
By four

View File

@@ -1,5 +1,5 @@
" 1st non-empty
2nd non-empty<SPC>
2nd non-empty
3rd non-empty "

View File

@@ -1,5 +1,5 @@
# Comment
<SPC><SPC><SPC>
\

View File

@@ -1,5 +1,5 @@
a
b<SPC><SPC>
b
c
d

View File

@@ -1,9 +1,9 @@
|
<SPC>
<SPC><SPC>
literal
<SPC><SPC><SPC>
<SPC><SPC>
text
# Comment

View File

@@ -2,13 +2,13 @@
# Comments:
strip: |-
# text
<SPC><SPC>
# Clip
# comments:
clip: |
# text
<SPC>
# Keep
# comments:

View File

@@ -1,13 +1,13 @@
foo: 1
bar: 2
<SPC><SPC><SPC><SPC>
text: |
a
<SPC><SPC><SPC><SPC>
b
c
<SPC>
d

View File

@@ -1,5 +1,5 @@
1st non-empty
2nd non-empty<SPC>
2nd non-empty
3rd non-empty

View File

@@ -1,7 +1,7 @@
>-
trimmed
<SPC><SPC>
<SPC>
as
space

View File

@@ -1,9 +1,9 @@
a: |
ab
<SPC>
cd
ef
<SPC>
...

View File

@@ -1,6 +1,6 @@
>
foo<SPC>
<SPC>
foo
bar
baz

View File

@@ -1,6 +1,6 @@
|-
ab
<SPC>
<SPC>
...

View File

@@ -1,6 +1,6 @@
"folded<SPC>
"folded
to a space,
<SPC>
to a line feed, or \
\ non-content"

View File

@@ -1,5 +1,5 @@
' 1st non-empty
2nd non-empty<SPC>
2nd non-empty
3rd non-empty '

View File

@@ -1,8 +1,8 @@
- |
detected
- >
<SPC>
<SPC><SPC>
# detected
- |1
explicit

View File

@@ -1,6 +1,6 @@
"
foo<SPC>
<SPC>
foo
bar
baz

View File

@@ -1,7 +1,7 @@
>
ab
cd
<SPC>
ef