From aa8cc19bede7b56dc26b32893365ddb4e4df2c20 Mon Sep 17 00:00:00 2001 From: Michael Grosse Date: Wed, 29 Jun 2016 17:34:01 +0200 Subject: [PATCH 1/2] Add bottom-margin: don't cling to next element Fixes #56 --- syntax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax.php b/syntax.php index 10860a9..7339fed 100644 --- a/syntax.php +++ b/syntax.php @@ -100,7 +100,7 @@ public function render($mode, Doku_Renderer $renderer, $data) { $newpagetemplateinput = $this->_htmlTemplateInput($data['newpagetemplates']); - $form = '
' . DOKU_LF + $form = '

' . DOKU_LF . DOKU_TAB . '

' . DOKU_LF . DOKU_TAB . DOKU_TAB . $namespaceinput . DOKU_LF . DOKU_TAB . DOKU_TAB . '' . DOKU_LF @@ -110,7 +110,7 @@ public function render($mode, Doku_Renderer $renderer, $data) { . DOKU_TAB . DOKU_TAB . '' . DOKU_LF . DOKU_TAB . DOKU_TAB . '' . DOKU_LF . DOKU_TAB . '
' . DOKU_LF - . '
'; + . '

'; $renderer->doc .= $form; return true; From ed55cb4cce2354808a9d00f643c92c5c9c972933 Mon Sep 17 00:00:00 2001 From: Michael Grosse Date: Wed, 29 Jun 2016 17:49:02 +0200 Subject: [PATCH 2/2] Clean whitespace from html source Since all major browser now have developer tools with automatic source code indentation adding further white-space to the source is unnecessary and potentially a styling issue. This retraces changes made in the DokuWiki core with the new release Elenor of Tsort. Co-authored-by: Damien Regad Conflicts: syntax.php --- style.less | 5 +++++ syntax.php | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 style.less diff --git a/style.less b/style.less new file mode 100644 index 0000000..9ecc509 --- /dev/null +++ b/style.less @@ -0,0 +1,5 @@ +div.addnewpage { + select, input { + margin-right: 3px; + } +} diff --git a/syntax.php b/syntax.php index 7339fed..f636887 100644 --- a/syntax.php +++ b/syntax.php @@ -100,17 +100,18 @@ public function render($mode, Doku_Renderer $renderer, $data) { $newpagetemplateinput = $this->_htmlTemplateInput($data['newpagetemplates']); - $form = '

' . DOKU_LF - . DOKU_TAB . '

' . DOKU_LF - . DOKU_TAB . DOKU_TAB . $namespaceinput . DOKU_LF - . DOKU_TAB . DOKU_TAB . '' . DOKU_LF + $form = '

' + . '' + . $namespaceinput + . '' . $newpagetemplateinput - . DOKU_TAB . DOKU_TAB . '' . DOKU_LF - . DOKU_TAB . DOKU_TAB . '' . DOKU_LF - . DOKU_TAB . DOKU_TAB . '' . DOKU_LF - . DOKU_TAB . DOKU_TAB . '' . DOKU_LF - . DOKU_TAB . '

' . DOKU_LF + . '' + . '' + . '' + . '' + . '' . '

'; + $renderer->doc .= $form; return true;