kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #06114
Re: [PATCH] Saving plot dialog settings
On 01/28/2011 01:18 PM, Marco Mattila wrote:
> On Fri, Jan 28, 2011 at 8:11 PM, Dick Hollenbeck <dick@xxxxxxxxxxx> wrote:
>> Having said that, then are you saying a string like this:
>>
>>
>> AB"CD
>>
>> On the way out, *before* quoting will be a problem? Will not come back in
>> via DSNLEXER? Have you verified this problem string with actual testing?
> I'm saying that the comments in OUTPUTFORMATTER::Quoted say that any
> string which has internal quotes will also be wrapped in quotes later
> in this function. If my string (in this case outputDirectory) is AB"CD
> it is going on disk as AB""CD. Based on the comment I think it should
> be "AB""CD". Anyways, if it is on disk as AB""CD it comes back as
> AB""CD. If it is on disk as "AB""CD" it comes back as AB"CD. If that
> is how things are supposed to work, I can strip the extra "'s in
> PCB_PLOT_PARAMS_PARSER.
The round trip criteria is not being met, according to you. So there is a
problem. You should get back in from DSNLEXER what you send out through
OUTPUTFORMATTER::Quoted().c_str().
Plain and simple.
I will test, verify and fix.
I also am switching over to Quoted() in template_fieldnames.cpp, which
probably gave you some wrong direction in the first place. Won't have time
to go the 2nd step and introduce TEMPLATE_FIELDNAMES_PARSER which I plan to
do later, so that we can continue to be consistent with the same design pattern.
Nice job.
Dick
References
-
[PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-02
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-03
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Wayne Stambaugh, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: jp.charras, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-05
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-27
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-27
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-28
-
Re: [PATCH] Saving plot dialog settings
From: Dick Hollenbeck, 2011-01-28
-
Re: [PATCH] Saving plot dialog settings
From: Marco Mattila, 2011-01-28