Page MenuHomePhabricator

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


Un premier programme.pdf

<source lang="csharp" line start="6">

Console.WriteLine("Hello world !");


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

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

Parsoid output looks correct , although it's a bit uglier than the "original" HTML.

Originally filed as

Version: unspecified
Severity: normal




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