From b621cdcda8863ebcba6979147e217786a87492cc Mon Sep 17 00:00:00 2001 From: anders_k Date: Sun, 7 Jul 2013 22:59:15 +0000 Subject: [PATCH] Docs: Only htmlsingle sets overflow:auto on pre blocks, other output formats have to accept a scrollbar for the whole document git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6379 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/config_htmlsingle.but | 6 +++++- Docs/style.css | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Docs/src/config_htmlsingle.but b/Docs/src/config_htmlsingle.but index 27b5500d..b107925d 100644 --- a/Docs/src/config_htmlsingle.but +++ b/Docs/src/config_htmlsingle.but @@ -5,5 +5,9 @@ \cfg{xhtml-leaf-level}{0} -\cfg{xhtml-head-end}{} + +\#SConscript will replace ---HTML:HEAD:STYLE:CSS--- with the CSS from style.css +\#To avoid a horizontal scrollbar for the whole document, pre blocks (code samples) use overflow:auto; and the extra padding is to prevent the scrollbar from obscuring single lines (In some versions on IE?) forums.winamp.com/showthread.php?t=365132 + +\cfg{xhtml-head-end}{} diff --git a/Docs/style.css b/Docs/style.css index d6854c47..bd7ded6f 100644 --- a/Docs/style.css +++ b/Docs/style.css @@ -21,7 +21,6 @@ pre { font-family: Courier New, Courier, mono; background-color: #F7F7F7; padding: 1px; - overflow-x: auto; } pre b { text-decoration: underline;