Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
167fba01
Commit
167fba01
authored
Jan 27, 2011
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn lineBreak option to line_break
parent
f31e34b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
GeneratorOptions.cs
src/ProtoGen/GeneratorOptions.cs
+3
-3
No files found.
src/ProtoGen/GeneratorOptions.cs
View file @
167fba01
...
...
@@ -172,12 +172,12 @@ namespace Google.ProtocolBuffers.ProtoGen {
if
(
TryCoerceType
(
value
,
fld
,
out
obj
,
tmpReasons
))
{
builder
[
fld
]
=
obj
;
}
}
else
if
(
name
==
"line
B
reak"
)
{
}
else
if
(
name
==
"line
_b
reak"
)
{
string
tmp
;
if
(
LineBreaks
.
TryGetValue
(
value
,
out
tmp
))
{
LineBreak
=
tmp
;
}
else
{
tmpReasons
.
Add
(
"Invalid value for 'line
B
reak': "
+
value
+
"."
);
tmpReasons
.
Add
(
"Invalid value for 'line
_b
reak': "
+
value
+
"."
);
}
}
else
if
(!
File
.
Exists
(
argument
))
{
doHelp
=
true
;
...
...
@@ -196,7 +196,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
foreach
(
KeyValuePair
<
string
,
FieldDescriptor
>
field
in
fields
)
{
tmpReasons
.
Add
(
String
.
Format
(
"-{0}=[{1}]"
,
field
.
Key
,
field
.
Value
.
FieldType
));
}
tmpReasons
.
Add
(
"-line
B
reak=["
+
string
.
Join
(
"|"
,
new
List
<
string
>(
LineBreaks
.
Keys
).
ToArray
())
+
"]"
);
tmpReasons
.
Add
(
"-line
_b
reak=["
+
string
.
Join
(
"|"
,
new
List
<
string
>(
LineBreaks
.
Keys
).
ToArray
())
+
"]"
);
tmpReasons
.
Add
(
"followed by one or more file paths."
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment