ofosos / ox-epub

Org mode epub export
GNU General Public License v3.0
92 stars 10 forks source link

Language name exported at beginning of source code block #14

Closed dhermanson closed 7 years ago

dhermanson commented 7 years ago

Hello. I'm using GNU Emacs 25.1.1 on macOS. Thank you for this amazing package.

When I do an export to .epub using this package, source code blocks seem to put the name of the language as the first part of the exported source code, which doesn't seem desirable to me. For example:

Rubyclass Person
  def initialize name, age
    @name = name
    @age = age
  end
end
Pythonclass Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age
Emacs Lisp(setq value "example")

Thanks!

ofosos commented 7 years ago

Didn't test that, looking into it on the weekend. Thanks for the report.

ofosos commented 7 years ago

Sorry for the late answer, but I can't currently reproduce that. I'm using:

#+begin_src python
def foo(x):
  if x>0:
    return x+1

  else:
    return x-1

return foo(5)
#+end_src
ofosos commented 7 years ago

Wait... this is indeed undesirable. This is fixed in v0.2.3.