Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a60cbb91
Commit
a60cbb91
authored
Feb 01, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specctra export: quote toks with % in them for freerouting.net
parent
d44f1c0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
specctra.cpp
pcbnew/specctra.cpp
+6
-2
No files found.
pcbnew/specctra.cpp
View file @
a60cbb91
...
...
@@ -3398,9 +3398,13 @@ const char* OUTPUTFORMATTER::GetQuoteChar( const char* wrapee, const char* quote
for
(
;
*
wrapee
;
++
wrapee
)
{
static
const
char
quoteThese
[]
=
"
\t
()"
"%"
// per Alfons of freerouting.net, he does not like this unquoted as of 1-Feb-2008
;
// if the string to be wrapped (wrapee) has a delimiter in it,
// return the quote_char so caller wraps the wrapee.
if
(
strchr
(
"
\t
()"
,
*
wrapee
)
)
if
(
strchr
(
quoteThese
,
*
wrapee
)
)
return
quote_char
;
if
(
!
strchr
(
"01234567890.-+"
,
*
wrapee
)
)
...
...
@@ -3561,7 +3565,7 @@ void STRINGFORMATTER::StripUseless()
{
for
(
std
::
string
::
iterator
i
=
mystring
.
begin
();
i
!=
mystring
.
end
();
)
{
if
(
isspace
(
*
i
)
||
*
i
==
')'
||
*
i
==
'('
)
if
(
isspace
(
*
i
)
||
*
i
==
')'
||
*
i
==
'('
||
*
i
==
'"'
)
mystring
.
erase
(
i
);
else
++
i
;
...
...
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