Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orgmode parser: incorrect timestamp location for h3 #5494

Closed
atbest opened this issue May 10, 2019 · 1 comment
Closed

Orgmode parser: incorrect timestamp location for h3 #5494

atbest opened this issue May 10, 2019 · 1 comment

Comments

@atbest
Copy link

atbest commented May 10, 2019

When timestamp information is set to be shown, it should located right after the headlines. This works for h1 and h2 but not h3 in Pandoc generated files. For example, the following file was converted to pdf file with Pandoc and Emacs.

#+OPTIONS: toc:nil
#+OPTIONS: todo:nil
#+OPTIONS: num:nil
#+OPTIONS: timestamp:nil
#+OPTIONS: p:t

* DONE This is head 1
CLOSED: [2019-05-10 Fri 13:42]

Text 1

** DONE This is head 2
CLOSED: [2019-05-10 Fri 13:42]

Text 2

*** DONE This is head 3
CLOSED: [2019-05-10 Fri 13:42]

Text 3

pandoc

As you can see from the figure, the timestamp info of h3 is located below Text 3 in Pandoc generated file.

When the file is converted to html by Pandoc, the contents are shown below:

<h1 id="this-is-head-1">This is head 1</h1>
<strong>CLOSED:</strong> <em>[2019-05-10 Fri 13:42]</em>
<p>Text 1</p>
<h2 id="this-is-head-2">This is head 2</h2>
<strong>CLOSED:</strong> <em>[2019-05-10 Fri 13:42]</em>
<p>Text 2</p>
<h3 id="this-is-head-3">This is head 3</h3>
<p>Text 3</p>
<strong>CLOSED:</strong> <em>[2019-05-10 Fri 13:42]</em>

Again, the timestamp info is behind of Text 3. So the bug should exist in the orgmode reader.

@tarleb
Copy link
Collaborator

tarleb commented May 13, 2019

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants