Bug 1877072

Summary: pandoc complains with LaTeX '[...]' split over several lines
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: pandocAssignee: Jens Petersen <petersen>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 32CC: petersen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-30 07:42:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A LaTeX file showing the problem none

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/