From 7da5589c75457e86ca5144c297834a0c2dff6721 Mon Sep 17 00:00:00 2001 From: Nikhil Ramakrishnan Date: Mon, 3 Sep 2018 16:45:28 +0530 Subject: [PATCH] [docwriter] Don't break code snippets accross lines. Reported as http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html * docs/reference/markdown/stylesheets/extra.css (.md-typeset code): Add rule `white-space'. --- ChangeLog | 11 +++++++++++ docs/reference/markdown/stylesheets/extra.css | 3 +++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5d8c415bd..df89cdbbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2018-09-03 Nikhil Ramakrishnan + + [docwriter] Don't break code snippets accross lines. + + Reported as + + http://lists.nongnu.org/archive/html/freetype-devel/2018-08/msg00124.html + + * docs/reference/markdown/stylesheets/extra.css (.md-typeset code): + Add rule `white-space'. + 2018-09-03 Werner Lemberg */*: s/PSNames/psnames/. diff --git a/docs/reference/markdown/stylesheets/extra.css b/docs/reference/markdown/stylesheets/extra.css index 92850ef19..cd6a1ee7e 100644 --- a/docs/reference/markdown/stylesheets/extra.css +++ b/docs/reference/markdown/stylesheets/extra.css @@ -33,6 +33,9 @@ span.keyword { white-space: pre; color: #d73a49; } +.md-typeset code { + white-space: pre; +} /* H4 Heading */ h4 { background-color: #EEEEFF;