Bug 1877072 - pandoc complains with LaTeX '[...]' split over several lines
Summary: pandoc complains with LaTeX '[...]' split over several lines
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pandoc
Version: 32
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-08 19:31 UTC by Horst H. von Brand
Modified: 2021-04-30 07:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-30 07:42:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A LaTeX file showing the problem (657 bytes, text/x-matlab)
2020-09-08 19:35 UTC, Horst H. von Brand
no flags Details

Description Horst H. von Brand 2020-09-08 19:31:47 UTC
Description of problem:
pandoc complains if LaTeX '[ ... ]' is split over several lines

Version-Release number of selected component (if applicable):
pandoc-2.7.3-3.fc32.x86_64

How reproducible:
Always

Steps to Reproduce:
1. latex mwe.tex  # Extract hello.c
2. pandoc mwe.tex --standalone --output=mwe.html
3.

Actual results:

Error at "source" (line 37, column 18):
unexpected firstline
                 firstline = 6, lastline = 11]{hello.c}
                 ^

Expected results:
No complains, correct HTML file

Additional info:
Latest nightly build of pandoc (as of 2020-09-07; 20.10.1, built from 10c6c411f9bd582ce9bafe159728f322a54395cd) works as expected

Comment 1 Horst H. von Brand 2020-09-08 19:35:16 UTC
Created attachment 1714172 [details]
A LaTeX file showing the problem

Run through LaTeX to get the embedded file, then run `pandoc mwe.tex --standalone --output=mwe.html`

Comment 2 Jens Petersen 2020-09-19 13:12:05 UTC
Okay, I see.

I have updated pandoc to 2.9.2.1 for Fedora 33.

If you know of a fix for the above issue, I could patch F32 I guess.

Comment 3 Fedora Program Management 2021-04-29 17:06:09 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Jens Petersen 2021-04-30 07:42:09 UTC
Just a late note that for f32 you could probably workaround this by using my copr repo,
which currently has pandoc-2.9.1.1 (though I am updating it after a long break):

https://copr.fedorainfracloud.org/coprs/petersen/pandoc/


Note You need to log in before you can comment on or make changes to this bug.