[emacs-berlin] Regarding org-export to html containing C++ code

Rasmus rasmus at gmx.us
Thu Jul 30 09:56:35 UTC 2015


Hi Lefteris,

Lefteris Karapetsas <lefteris at refu.co> writes:

> Hey, we had a chat in the meetup about a problem I have been having with
> exporting org files containing C/C++ code into html.
>
> Here is a sample showing the problem. As I had mentioned in the meetup I
> get the same strange characters repeated at the end of each line.

This is pretty weird.  Does this happen when you start without your init
file? (e.g. emacs -q or emacs -Q).

> emacs-version: GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version
> 3.16.2) of 2015-04-20 on bitzer.hoetzel.info
>
> org-version:  Org-mode version 8.3beta (release_8.3beta-1300-gee945a @
> /home/lefteris/.emacs.d/el-get/org-mode/lisp/)


> Table of Contents
>
> • 1. Testing html publishing of Cpp code 
>
> 1 Testing html publishing of Cpp code
>
> int main() {
>     return 0;
> }

These are funny symbols.  Perhaps you have got a filter on export.  My bet
would be your have funny settings for C++ somehow.  This is what comes out
of my Emacs:

     <pre class="src src-C++"><span style="color: #228b22;">int</span> <span style="color: #0000ff;">main</span>() {
         <span style="color: #a020f0;">return</span> 0;
     }
     </pre>

This is yours.  It's much more busy:

     <pre class="src src-C++"><span style="color: #b58900;">int</span> <span style="color: #268bd2;">main</span><span style="color: #2aa198;">()</span> <span style="color: #2aa198;">{</span>
         <span style="color: #859900; font-weight: bold;">return</span> 0;
     <span style="color: #2aa198;">}</span>
     </pre>

When you've found out what causes this let us know.

Rasmus

-- 
And when I’m finished thinking, I have to die a lot



More information about the emacs-berlin mailing list