Page MenuHomePhabricator

<pre> tag not rendered correctly in PDF
Closed, DeclinedPublic

Description

Un premier programme.pdf

<source lang="csharp" line start="6">
        Console.WriteLine("Hello world !");
</source>

etc. is not rendered correctly in the OCG/new PDF rendering, which shows something like:

1. Console.WriteLine(“Hello world !") ;

Parsoid output looks correct http://parsoid-lb.eqiad.wikimedia.org/frwikibooks/Programmation_C_sharp%2FUn_premier_programme?oldid=428741 , although it's a bit uglier than the "original" HTML.

Originally filed as http://web.archive.org/web/20111002213955/http://code.pediapress.com/wiki/ticket/743


Version: unspecified
Severity: normal
URL: https://fr.wikibooks.org/w/index.php?title=Sp%C3%A9cial:Livre&bookcmd=render_article&arttitle=Programmation+C+sharp%2FUn+premier+programme&oldid=428741&writer=rdf2latex

Attached:

Details

Reference
bz71326

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:58 AM
bzimport added a project: OCG-PDF-renderer.
bzimport set Reference to bz71326.
bzimport added a subscriber: Unknown Object (MLST).

We don't implement any formatting for the <PRE> tag in the PDF backend (yet).

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.

Renders as expected in the PDF when trying on https://www.mediawiki.org/wiki/User:AKlapper_(WMF)/Sandbox with "Download as PDF", nowadays that we use Proton and Electron-PDFs on Wikimedia servers.

Regarding the link to Spécial:Livre on fr.wikibooks.org , declining this task as "The Wikimedia Foundation's book rendering service has been withdrawn", plus OCG has been dead for years and superseded by Proton and Electron-PDFs on Wikimedia servers.