From: XhmikosR Date: Wed, 27 Sep 2017 10:08:03 +0000 (+0300) Subject: example plugin: add `data-example-id` only if it's been supplied. (#24127) X-Git-Tag: v4.0.0-beta.2~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dd3d91768227a7ac03a63f8e47eacae99be8892;p=thirdparty%2Fbootstrap.git example plugin: add `data-example-id` only if it's been supplied. (#24127) --- diff --git a/_plugins/example.rb b/_plugins/example.rb index 8a86a22028..9132897206 100644 --- a/_plugins/example.rb +++ b/_plugins/example.rb @@ -34,7 +34,7 @@ Syntax Error in tag 'example' while parsing the following markup: #{markup} -Valid syntax: example +Valid syntax: example [id=foo] eos end end @@ -55,7 +55,7 @@ eos end def example(output) - "
\n#{output}\n
" + "
\n#{output}\n
" end def remove_holderjs(code)