Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: How to deal with "messy" quotes? Date: Mon, 12 Dec 2016 20:50:58 +0100 Organization: PointedEars Software (PES) Lines: 52 Message-ID: <2474381.88bMQJbFj6@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1481572259 9837 eJwFwQkRwEAIBDBLHM8CcijD+pfQJAwPm46AB4Oecj0ydupIWjTrnKI7n6Ps+Ax12rGSR/0BFHsQ3w== (12 Dec 2016 19:50:59 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 12 Dec 2016 19:50:59 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. ram@zedat.fu-berlin.de (Stefan Ram) writes: >>justaguy writes: >>>s.innerHTML = " " + fn + " >To make it more readable, intersperse line breaks >>s.innerHTML = " " >>+ fn >>+ " > Due to automatic semicolon insertation, this might not always work. This will always work. > Well. So, maybe: > > s.innerHTML = > " " + > fn + > " ... > > (I first wrote it this way, but then I noticed that the > »+« sign was moving. So I wanted to align the »+« signs.) That is what I do: s = "foo" + bar + "baz"; -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.