← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Saving plot dialog settings

 

On Fri, Jan 28, 2011 at 12:21 AM, Dick Hollenbeck <dick@xxxxxxxxxxx> wrote:
> Any "complex" string that is capable of having either whitespace or quotes
> in it should be wrapped using
>
> aFormatter->Quoted( CONV_TO_UTF8(blah) ).c_str(),

I'm working on this now. Should there be something like

if( strchr( quote_char, *wrapee ) )
      return quote_char;

in the for loop of OUTPUTFORMATTER::GetQuotedChar? Otherwise it seems
that a string with internal quotes is not wrapped in quotes.

marco



Follow ups

References