From: W. Trevor King Date: Thu, 12 Apr 2012 02:41:48 +0000 (-0400) Subject: Add spaces after `unrecognized ... type` in Circ.asy. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb908951ca17e58f17c154a66e8fec08d66223f3;p=course.git Add spaces after `unrecognized ... type` in Circ.asy. Otherwise you get messages like: Error, unrecognized resistor type-90 --- diff --git a/asymptote/Circ.asy b/asymptote/Circ.asy index 6a9c2db..a10cffb 100644 --- a/asymptote/Circ.asy +++ b/asymptote/Circ.asy @@ -111,7 +111,7 @@ void wire(pair pin_beg, pair pin_end, int type=nsq, real dist=0) draw(pin_beg--(pin_beg+(dist,0))--(pin_beg.x + dist,pin_end.y) --pin_end, line); } else { - write("Error, unrecognized wire type",type); + write("Error, unrecognized wire type ",type); } } } @@ -130,7 +130,7 @@ void ctext(pair pin_beg, pair pin_end, string txt, bool type) draw(ctxt, txtahead(pin_beg--pin_end)); draw(ctxt, txtahead(reverse(pin_beg--pin_end))); } else { - write("Error, unrecognized ctext type",type); + write("Error, unrecognized ctext type ",type); } label(ctxt, txt, 0.5(pin_beg+pin_end)); add(currentpicture, ctxt); @@ -307,7 +307,7 @@ TwoTerminal resistor(pair beg=(0,0), real ang=0, int type=normal, pMisc.push((2rstlth,-rstlth)--(5.5rstlth,rstlth)); pMisc.push(miscahead((2rstlth,-rstlth)--(5.5rstlth,rstlth))); } else { - write("Error, unrecognized resistor type",type); + write("Error, unrecognized resistor type ",type); } term = TwoTerminal(beg, 7rstlth, ang, .8rstlth, .8rstlth, name, val, pLine, pMisc); if (draw == true) @@ -338,7 +338,7 @@ TwoTerminal inductor(pair beg=(0,0), real ang=0, int type=Up, string name="", pLine = pLine{S}..{N}(5coil,0)--(6coil,0); // the original makecirc changed labelangle to ang-180 } else { - write("Error, unrecognized inductor type",type); + write("Error, unrecognized inductor type ",type); } term = TwoTerminal(beg, 6coil, ang, coil, coil, name, val, pLine); // the original makecirc used .5coil for lcharv @@ -378,7 +378,7 @@ TwoTerminal capacitor(pair beg=(0,0), real ang=0, int type=normal, pLine.push((3platsep,-2.5platsep)--(3platsep,2.5platsep)); pLine.push((4.5platsep,-2.5platsep)..(4platsep,0)..(4.5platsep,2.5platsep)); } else { - write("Error, unrecognized capacitor type",type); + write("Error, unrecognized capacitor type ",type); } term = TwoTerminal(beg, 7platsep, ang, 2.5platsep, 2.5platsep, name, val, pLine, pMisc); if (draw == true) @@ -420,7 +420,7 @@ TwoTerminal diode(pair beg=(0,0), real ang=0, int type=normal, string name="", pMisc.push(fullhead(pMisc[0], 0.4diodeht, 30)); pMisc.push(fullhead(pMisc[1], 0.4diodeht, 30)); } else { - write("Error, unrecognized capacitor type",type); + write("Error, unrecognized capacitor type ",type); } term = TwoTerminal(beg, 3diodeht, ang, lchar, lcharv, name, val,pLine,pMisc); if (draw == true) @@ -478,7 +478,7 @@ TwoTerminal switchSPST(pair beg=(0,0), real ang=0, int type=NO, string name="", } else if (type==NC) { pLine.push((0.7ssep,0)--(2ssep,ssep/3)); } else { - write("Error, unrecognized switchSPST type",type); + write("Error, unrecognized switchSPST type ",type); } term = TwoTerminal(beg, 2.4ssep, ang, lchar, lcharv, name, val, pLine,pMisc); if (draw == true)