Page MenuHomePhabricator

<pre> tag not rendered correctly in PDF
Open, Needs TriagePublic

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).
Nemo_bis created this task.Sep 25 2014, 7:19 PM

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

Restricted Application added a project: Internet-Archive. · View Herald TranscriptDec 10 2015, 11:00 PM
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.