Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
66381e30
Commit
66381e30
authored
Sep 13, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
1fb1c4c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
include/fmt/format.h
include/fmt/format.h
+1
-0
support/rst2md.py
support/rst2md.py
+5
-5
No files found.
include/fmt/format.h
View file @
66381e30
...
...
@@ -3731,6 +3731,7 @@ FMT_END_NAMESPACE
**Example**::
#define FMT_STRING_ALIAS 1
#include <fmt/format.h>
// A compile-time error because 'd' is an invalid specifier for strings.
std::string s = format(fmt("{:d}"), "foo");
...
...
support/rst2md.py
View file @
66381e30
...
...
@@ -113,8 +113,9 @@ class Translator(nodes.NodeVisitor):
for
i
,
entry
in
enumerate
(
row
):
text
=
entry
[
0
][
0
]
if
len
(
entry
)
>
0
else
''
if
i
!=
0
:
self
.
write
(
'
'
)
self
.
write
(
'
|
'
)
self
.
write
(
'{:{}}'
.
format
(
text
,
widths
[
i
]))
self
.
write
(
'
\n
'
)
def
visit_table
(
self
,
node
):
table
=
node
.
children
[
0
]
...
...
@@ -122,14 +123,13 @@ class Translator(nodes.NodeVisitor):
thead
=
table
[
-
2
]
tbody
=
table
[
-
1
]
widths
=
[
int
(
cs
[
'colwidth'
])
for
cs
in
colspecs
]
sep
=
'
'
.
join
([
'-'
*
w
for
w
in
widths
])
self
.
write
(
sep
)
sep
=
'
|'
.
join
([
'-'
*
w
for
w
in
widths
])
+
'
\n
'
self
.
write
(
'
\n\n
'
)
self
.
write_row
(
thead
[
0
],
widths
)
self
.
write
(
sep
)
for
row
in
tbody
:
self
.
write_row
(
row
,
widths
)
self
.
write
(
sep
)
raise
nodes
.
StopTraversal
raise
nodes
.
SkipChildren
def
depart_table
(
self
,
node
):
pass
...
...
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