"brian m. carlson" <sandals@xxxxxxxxxxxxxxxxxxxx> writes: > On Thu, Jan 26, 2017 at 07:18:41PM +0000, Eric Wong wrote: >> > Eric Wong <e@xxxxxxxxx> writes: >> Junio C Hamano <gitster@xxxxxxxxx> wrote: >> > + "<citerefentry>\n" >> > + "<refentrytitle>#{target}</refentrytitle>" >> > + "<manvolnum>#{attrs[1]}</manvolnum>\n" >> > + "</citerefentry>\n" >> > end >> >> You need the '\' at the end of those strings, it's not like C >> since Ruby doesn't require semi-colons to terminate lines. >> In other words, that should be: >> >> "<citerefentry>\n" \ >> "<refentrytitle>#{target}</refentrytitle>" \ >> "<manvolnum>#{attrs[1]}</manvolnum>\n" \ >> "</citerefentry>\n" >> > > This change is fine with me. OK, I just squashed the final one in. Will merge to 'next' shortly. diff --git a/Documentation/Makefile b/Documentation/Makefile index 11f76506b6..b21e5808b1 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -179,7 +179,8 @@ ASCIIDOC = asciidoctor ASCIIDOC_CONF = ASCIIDOC_HTML = xhtml5 ASCIIDOC_DOCBOOK = docbook45 -ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions -alitdd='&\#x2d;&\#x2d;' +ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions +ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;' DBLATEX_COMMON = endif diff --git a/Documentation/asciidoctor-extensions.rb b/Documentation/asciidoctor-extensions.rb index 09f7088eea..ec83b4959e 100644 --- a/Documentation/asciidoctor-extensions.rb +++ b/Documentation/asciidoctor-extensions.rb @@ -13,10 +13,10 @@ module Git prefix = parent.document.attr('git-relative-html-prefix') %(<a href="#{prefix}#{target}.html">#{target}(#{attrs[1]})</a>\n) elsif parent.document.basebackend? 'docbook' - %(<citerefentry> -<refentrytitle>#{target}</refentrytitle><manvolnum>#{attrs[1]}</manvolnum> -</citerefentry> -) + "<citerefentry>\n" \ + "<refentrytitle>#{target}</refentrytitle>" \ + "<manvolnum>#{attrs[1]}</manvolnum>\n" \ + "</citerefentry>\n" end end end