From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Berry Subject: Running Node.js and exporting css. Date: Fri, 22 Aug 2014 10:54:21 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2c7a26013070501390474 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKqEl-00058t-Qo for emacs-orgmode@gnu.org; Fri, 22 Aug 2014 10:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKqEk-0006QR-PL for emacs-orgmode@gnu.org; Fri, 22 Aug 2014 10:54:43 -0400 Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:52580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKqEk-0006QL-KX for emacs-orgmode@gnu.org; Fri, 22 Aug 2014 10:54:42 -0400 Received: by mail-qc0-f177.google.com with SMTP id x13so11010172qcv.36 for ; Fri, 22 Aug 2014 07:54:41 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001a11c2c7a26013070501390474 Content-Type: text/plain; charset=UTF-8 Couple of weeks ago, I accidentally spammed the message board with several attempts to send up a couple of patches for some problems I was seeing. So, firstly, apologies for the spam. The two problems I was seeing were related to executing js using node.js, and exporting css with vendor properties. The node.js problem is that it will start putting in newlines if a structure is past some size. I think this may be "fixable" by changing some settings in node.js, but it was also easy enough to change the regex to look past newlines in org. An example of the problem can be seen by running the following #+BEGIN_SRC js return [[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1,2]] #+END_SRC If you remove just one of the inner arrays, it will work as desired. The other problem is just as short. Simply export the following when you have org-src-fontify-natively set. #+BEGIN_SRC css foo { -webkit-appearance: none; } #+END_SRC I cobbled a small change that seemed to fix that. At any rate, again apologies for the previous spam. I didn't want to just respam immediately with an apology. Thanks! -- josh --001a11c2c7a26013070501390474 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Couple of weeks ago, I accidentally spammed the message bo= ard with several attempts to send up a couple of patches for some problems = I was seeing. =C2=A0So, firstly, apologies for the spam.=C2=A0

The two problems I was seeing were related to executing js using nod= e.js, and exporting css with vendor properties.

The node.js problem is that it will start putting in ne= wlines if a structure is past some size. =C2=A0I think this may be "fi= xable" by changing some settings in node.js, but it was also easy enou= gh to change the regex to look past newlines in org. =C2=A0An example of th= e problem can be seen by running the following

=C2=A0 #+BEGIN_SRC js
=C2=A0 =C2=A0 retu= rn [[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1, 2],[1,2]]
=C2=A0 #+END= _SRC

If you remove just one of the inner arr= ays, it will work as desired.

The other problem is just as short. =C2=A0Simply export= the following when you have org-src-fontify-natively set.

=C2=A0 #+BEGIN_SRC css
=C2=A0 =C2=A0 foo {
=C2=A0 =C2=A0 =C2=A0 -webkit-appearance: none;
=C2=A0 =C2=A0 }
=C2=A0 #+END_SRC

<= div>I cobbled a small change that seemed to fix that.

<= div>At any rate, again apologies for the previous spam. =C2=A0I didn't = want to just respam immediately with an apology. =C2=A0

Thanks!

--
josh
--001a11c2c7a26013070501390474--