Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: Lib/test/cfgparser.3

Issue 15550: Trailing white spaces
Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/cfgparser.2 ('k') | Lib/test/sgml_input.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # INI with as many tricky parts as possible 1 # INI with as many tricky parts as possible
2 # Most of them could not be used before 3.2 2 # Most of them could not be used before 3.2
3 3
4 # This will be parsed with the following options 4 # This will be parsed with the following options
5 # delimiters = {'='} 5 # delimiters = {'='}
6 # comment_prefixes = {'#'} 6 # comment_prefixes = {'#'}
7 # allow_no_value = True 7 # allow_no_value = True
8 8
9 [DEFAULT] 9 [DEFAULT]
10 go = %(interpolate)s 10 go = %(interpolate)s
11 11
12 [strange] 12 [strange]
13 values = that are indented # and end with hash comments 13 values = that are indented # and end with hash comments
14 other = that do continue 14 other = that do continue
15 in # and still have 15 in # and still have
16 other # comments mixed 16 other # comments mixed
17 lines # with the values 17 lines # with the values
18 18
19 19
20 20
21 21
22 22
23 [corruption] 23 [corruption]
24 value = that is 24 value = that is
25 25
26 26
27 actually still here 27 actually still here
28 28
29 29
30 and holds all these weird newlines 30 and holds all these weird newlines
31 31
32 32
33 # but not for the lines that are comments 33 # but not for the lines that are comments
34 nor the indentation 34 nor the indentation
35 35
36 another value = # empty string 36 another value = # empty string
37 yet another # None! 37 yet another # None!
38 38
39 [yeah, sections can be indented as well] 39 [yeah, sections can be indented as well]
40 and that does not mean = anything 40 and that does not mean = anything
41 are they subsections = False 41 are they subsections = False
42 if you want subsections = use XML 42 if you want subsections = use XML
43 lets use some Unicode = 片仮名 43 lets use some Unicode = 片仮名
44 44
45 [another one!] 45 [another one!]
46 even if values are indented like this = seriously 46 even if values are indented like this = seriously
47 yes, this still applies to = section "another one!" 47 yes, this still applies to = section "another one!"
48 this too = are there people with configurations broken as this? 48 this too = are there people with configurations broken as this?
49 beware, this is going to be a continuation 49 beware, this is going to be a continuation
50 of the value for 50 of the value for
51 key "this too" 51 key "this too"
52 even if it has a = character 52 even if it has a = character
53 this is still the continuation 53 this is still the continuation
54 your editor probably highlights it wrong 54 your editor probably highlights it wrong
55 but that's life 55 but that's life
56 # let's set this value so there is no error 56 # let's set this value so there is no error
57 # when getting all items for this section: 57 # when getting all items for this section:
58 interpolate = anything will do 58 interpolate = anything will do
59 59
60 [no values here] 60 [no values here]
61 # but there's this `go` in DEFAULT 61 # but there's this `go` in DEFAULT
62 62
63 [tricky interpolation] 63 [tricky interpolation]
64 interpolate = do this 64 interpolate = do this
65 lets = %(go)s 65 lets = %(go)s
66 66
67 [more interpolation] 67 [more interpolation]
68 interpolate = go shopping 68 interpolate = go shopping
69 lets = %(go)s 69 lets = %(go)s
OLDNEW
« no previous file with comments | « Lib/test/cfgparser.2 ('k') | Lib/test/sgml_input.html » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+