Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9b480bb7
Commit
9b480bb7
authored
Jun 08, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix: literals can be empty
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=30080 CL=30080
parent
bbc2c038
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/datafmt/datafmt.go
src/lib/datafmt/datafmt.go
+1
-1
No files found.
src/lib/datafmt/datafmt.go
View file @
9b480bb7
...
...
@@ -567,7 +567,7 @@ func (s *State) eval(fexpr expr, value reflect.Value, index int) bool {
s
.
hasOutput
=
true
;
// write literal segments
for
_
,
lit
:=
range
t
{
if
l
it
[
0
]
==
'%'
&&
len
(
lit
)
>
1
{
if
l
en
(
lit
)
>
1
&&
lit
[
0
]
==
'%'
{
// segment contains a %-format at the beginning
if
lit
[
1
]
==
'%'
{
// "%%" is printed as a single "%"
...
...
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