From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: Bug: Export to html inserts strange unicode characters at line breaks because of fci-mode [8.2.7c (8.2.7c-64-g01f736-elpa @ /home/kmodi/.emacs.d/elpa/org-20140915/)] Date: Fri, 26 Sep 2014 06:19:20 -0400 Message-ID: References: <87ppeid7ix.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d5ec81720f70503f540cf Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXSca-0006K9-16 for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 06:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXScY-0003za-K3 for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 06:19:27 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:51771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXScY-0003y2-De for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 06:19:26 -0400 Received: by mail-we0-f176.google.com with SMTP id w61so8554495wes.35 for ; Fri, 26 Sep 2014 03:19:20 -0700 (PDT) In-Reply-To: <87ppeid7ix.fsf@nicolasgoaziou.fr> 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 --047d7b5d5ec81720f70503f540cf Content-Type: text/plain; charset=ISO-8859-1 The problem is that `(funcall prog-mode)' in `org-html-fontify-code' enables fci-mode. So disabling it in `org-export-before-parsing-hook' won't work. But your reply gave me another idea.. I can remove enabling of fci-mode from my prog mode hook in `org-export-before-parsing-hook'. But then where can I rehook it? I can't find a hook like `org-export-after-processing-hook'. Can you suggest a hook that can work for this use case? -- Kaushal Modi On Sep 26, 2014 6:01 AM, "Nicolas Goaziou" wrote: > Hello, > > Kaushal writes: > > > I have fci-mode installed and enabled for programming modes. > > > > When org exports to html, htmlize figures out the syntax highlighting of > > the code by calling =(funcall lang-mode)=. > > > > That activates =fci-mode=. > > > > =fci-mode= shows the fill column using a unicode character. The issue is > > that org export to html exports that character as well. > > > > Those characters show up in html as below! > > http://i.imgur.com/8WplTqw.png > > > > So the solution is to fix the =orx-html-fontify-code= function. > > I don't think so. `fill-column-indicator' is not even in core Emacs. We > shouldn't provide a workaround for every package out there. > > Can't you simply disable this minor mode before exporting buffer, in > a hook such as `org-export-before-parsing-hook'? > > > Regards, > > -- > Nicolas Goaziou > --047d7b5d5ec81720f70503f540cf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

The problem is that `(funcall prog-mode)' in `org-html-f= ontify-code' enables fci-mode. So disabling it in `org-export-before-pa= rsing-hook' won't work.

But your reply gave me another idea..

I can remove enabling of fci-mode from my prog mode hook in = `org-export-before-parsing-hook'.

But then where can I rehook it? I can't find a hook like= `org-export-after-processing-hook'. Can you suggest a hook that can wo= rk for this use case?

--
Kaushal Modi

On Sep 26, 2014 6:01 AM, "Nicolas Goaziou&q= uot; <mail@nicolasgoaziou.fr> wrote:
Hello,=

Kaushal <
kaushal.modi@gmail.co= m> writes:

> I have fci-mode installed and enabled for programming modes.
>
> When org exports to html, htmlize figures out the syntax highlighting = of
> the code by calling=A0 =3D(funcall lang-mode)=3D.
>
> That activates =3Dfci-mode=3D.
>
> =3Dfci-mode=3D shows the fill column using a unicode character. The is= sue is
> that org export to html exports that character as well.
>
> Those characters show up in html as below!
> http://i.= imgur.com/8WplTqw.png
>
> So the solution is to fix the =3Dorx-html-fontify-code=3D function.
I don't think so. `fill-column-indicator' is not even in core Emacs= . We
shouldn't provide a workaround for every package out there.

Can't you simply disable this minor mode before exporting buffer, in a hook such as `org-export-before-parsing-hook'?


Regards,

--
Nicolas Goaziou
--047d7b5d5ec81720f70503f540cf--