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

RST writer wraps the horz line table delimiters #5128

Closed
kaushalmodi opened this issue Dec 5, 2018 · 5 comments
Closed

RST writer wraps the horz line table delimiters #5128

kaushalmodi opened this issue Dec 5, 2018 · 5 comments

Comments

@kaushalmodi
Copy link

Hello,

This issue came up as I was trying out the feature that was implemented to resolve #4750.

I have this example Org file:

| Option | Meaning                                                                                                                                                                                                    |
|--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| =<=    | Left alignment, additional characters are added to the right (default for string).                                                                                                                         |
| =>=     | Right alignment, additional characters are added to the left.                                                                                                                                              |
| =^=     | Centered , the same amount of characters is added to the left and the right.                                                                                                                               |
| ===      | Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "=>=". This option is only available for numbers (default for numbers). |

If I save that as table.org, and run pandoc table.org -o table.rst, I get:

======
============================================================================================================================================================================================================
Option Meaning
======
============================================================================================================================================================================================================
``<``  Left alignment, additional characters are added to the right (default for string).
``>``  Right alignment, additional characters are added to the left.
``^``  Centered , the same amount of characters is added to the left and the right.
``=``  Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "``>``". This option is only available for numbers (default for numbers).
======
============================================================================================================================================================================================================

I was expecting the horizontal lines to not wrap i.e. have the generated RST look like below instead:

====== ============================================================================================================================================================================================================
Option Meaning
====== ============================================================================================================================================================================================================
``<``  Left alignment, additional characters are added to the right (default for string).
``>``  Right alignment, additional characters are added to the left.
``^``  Centered , the same amount of characters is added to the left and the right.
``=``  Padding. If a numeric value is printed with a sign, then additional characters are added after the sign. Otherwise it behaves like "``>``". This option is only available for numbers (default for numbers).
====== ============================================================================================================================================================================================================

Pandoc version: 2.5

@jgm
Copy link
Owner

jgm commented Dec 6, 2018

They definitely shouldn't wrap. This should be pretty easy to fix by inserting nowrap.

@jgm jgm closed this as completed in d5e68d4 Dec 6, 2018
daamien pushed a commit to daamien/pandoc that referenced this issue Dec 27, 2018
@kaushalmodi
Copy link
Author

@jgm Can we please have a New Year release?:) I'm really looking forward to getting this fix. Thanks!

@mb21
Copy link
Collaborator

mb21 commented Jan 2, 2019

@kaushalmodi try the nightly releases...

@kaushalmodi
Copy link
Author

@mb21 Thanks. I didn't know of pandoc nightly builds. I googled and found this: https://github.com/pandoc-extras/pandoc-nightly/releases/tag/hash-c998b937c.

I will try that out, though that does not have pandoc-citeproc packaged with it; I hope that using the stable release pandoc-citeproc with nightly pandoc doesn't cause any issue.

@kaushalmodi
Copy link
Author

@mb21 Looks like I will need to rely on the official stable builds. I tried that nightly release but it is not a static binary, and so it doesn't work on my old RHEL 6.8:

km²~/sandbox/:pandoc> /home/kmodi/downloads/pandoc-amd64-4eb8a97a1/pandoc table.org -o table.rst
/home/kmodi/downloads/pandoc-amd64-4eb8a97a1/pandoc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/kmodi/downloads/pandoc-amd64-4eb8a97a1/pandoc)

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