Page MenuHomePhabricator

<pre> elements do not have whitespace preserved/monospace fonts
Closed, DeclinedPublic

Description

Author: juhasz.balint.bebe

Description:
problem

Saving articles with example codes in it, makes new lines and monospace fonts disappear and the output becomes simple text which is very unpleasant to read.


Version: unspecified
Severity: major
OS: Windows 7
Platform: PC

Attached:

Untitled.png (273×592 px, 16 KB)

Details

Reference
bz72526

Event Timeline

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

Please provide steps to reproduce or an example link.

juhasz.balint.bebe wrote:

  1. Go to https://en.wikipedia.org/wiki/C_(programming_language) for example.
  1. Download as pdf.
  1. Look at the paragraph >>"Hello, world" example<< where you can see the code as a simple text, wrapped and unformatted.

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.

Cannot reproduce a problem anymore with current Proton and Electron-PDFs: On current https://en.wikipedia.org/wiki/C_(programming_language) , using "Download as PDF", code snippet areas are rendered as expected. Not a problem anymore.

Declining this task as OCG has been dead for years and superseded by #Proton and #Electron-PDFs on Wikimedia servers.