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

reStructured Text's Field Lists don't render correctly #90

Closed
jgm opened this issue Jun 10, 2011 · 4 comments
Closed

reStructured Text's Field Lists don't render correctly #90

jgm opened this issue Jun 10, 2011 · 4 comments
Assignees

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

What steps will reproduce the problem?

  1. Create a field list in rst

:field1: variable
:field2: variable1
:field3: variable2
:field4: variable3

What is the expected output? What do you see instead?
Expect output to be of the rough format

field1

variable

etc

What version of the product are you using? On what operating system?

Ubuntu Maverick (10.10) fuly up to date, Pandoc ~1.7 - cloned the git repo.

Note that some fields come out correctly, but not all fields do.

Original email to/thread on pandoc discuss list:

http://groups.google.com/group/pandoc-discuss/browse_thread/thread/6238c8ace5ee4560?hl=en

Google Code Info:
Issue #: 280
Author: data...@gmail.com
Created On: 2011-01-27T01:45:51.000Z
Closed On: 2011-01-27T01:53:30.000Z

@ghost ghost assigned jgm Jun 10, 2011
@jgm jgm closed this as completed Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I believe the problems have been fixed in the latest development version on github.

703c421

(Note: in order to install this, you must first install pandoc-types from the github repo,
and then reinstall citeproc-hs after tweaking its build-depends to allow pandoc-types 1.8.
So you may just want to wait to test this further.)

I'll mark this fixed, but if you still encounter problems, reply here.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2011-01-27T01:53:30.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I'm sorry for the late reply. Largely it is now working, but not completely - this may be because of a misunderstanding of mine.

In the case where we have

:field1: variable

if field1 has a space in it, like so:

:field 1: variable

there still seems to be an issue. I've not looked deeply into the problem, but I noticed that the fields that were not rendering correctly all had spaces, while all others (including those that previously were not rendering correctly) were rendering correctly.

Presuming that this is a regex issue, I considered that this initial diagnosis was enough. Shout out if you need any more.

Google Code Info:
Author: data...@gmail.com
Created On: 2011-02-03T12:47:37.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Can you supply an actual test case that fails? Field names with spaces seem to work for me (see below). Are you sure you're using pandoc 1.8 now?

% pandoc -f rst -t native
:field1: variable
:field 1: variable

[DefinitionList
[([Str "field1"],
[[Para [Str "variable"]]])
,([Str "field 1"],
[[Para [Str "variable"]]])]]

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2011-02-03T15:46:34.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

You are right, my bad. Somehow I ended up with /usr/lib/pandoc (1.6) as well as ~/.cabal/bin/pandoc (1.8.0.1).

I removed the old stuff, all good now - thanks

Google Code Info:
Author: data...@gmail.com
Created On: 2011-02-03T23:57:55.000Z

jgm added a commit that referenced this issue Feb 27, 2017
Add option for ToC color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant