# [PATCH] Improve user-manual html and pdf formatting

7 messages from 2014-01-04 to 2014-01-06. Participants: Thomas Ackermann, Jonathan Nieder, Øystein Walle, Andreas Schwab, Junio C Hamano.
Thread: https://gitlist.dev/t/35606

## Thomas Ackermann, 2014-01-04 09:07

Subject: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <352636633.1492236.1388826471175.JavaMail.ngmail@webmail10.arcor-online.net>
URL: https://gitlist.dev/e/352636633.1492236.1388826471175.JavaMail.ngmail%40webmail10.arcor-online.net

```

Use asciidoc style 'article' instead of 'book' and change asciidoc title level.
This removes blank first page and superfluous "Part I" page (there is no "Part II")
in pdf output. Also pdf size is decreased by this from 77 to 67 pages.
In html output this removes unnecessary sub-tocs and chapter numbering.

Signed-off-by: Thomas Ackermann <th.acker@arcor.de>
---
 Documentation/Makefile        | 2 +-
 Documentation/user-manual.txt | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index 91a12c7..36c58fc 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -324,7 +324,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
 
 user-manual.xml: user-manual.txt user-manual.conf
 	$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
-	$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d book -o $@+ $< && \
+	$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d article -o $@+ $< && \
 	mv $@+ $@
 
 technical/api-index.txt: technical/api-index-skel.txt \
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index cbb01a1..130c2f4 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1,5 +1,5 @@
-Git User Manual
-_______________
+&#65279;Git User Manual
+===============
 
 Git is a fast distributed revision control system.
 
-- 
1.8.5.2.msysgit.0


---
Thomas

```

## Jonathan Nieder, 2014-01-04 21:18

Subject: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <20140104211834.GC12251@google.com>
URL: https://gitlist.dev/e/20140104211834.GC12251%40google.com
In-Reply-To: <352636633.1492236.1388826471175.JavaMail.ngmail@webmail10.arcor-online.net>

```
Hi,

Thomas Ackermann wrote:

> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -1,5 +1,5 @@
> -Git User Manual
> +&#65279;Git User Manual

Why?

Puzzled,
Jonathan

```

## Øystein Walle, 2014-01-04 21:38

Subject: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <loom.20140104T223713-502@post.gmane.org>
URL: https://gitlist.dev/e/loom.20140104T223713-502%40post.gmane.org
In-Reply-To: <20140104211834.GC12251@google.com>

```
Jonathan Nieder <jrnieder <at> gmail.com> writes:

> 
> Hi,
> 
> Thomas Ackermann wrote:
> 
> > --- a/Documentation/user-manual.txt
> > +++ b/Documentation/user-manual.txt
> >  <at>  <at>  -1,5 +1,5  <at>  <at> 
> > -Git User Manual
> > +&#65279;Git User Manual
> 
> Why?
> 
> Puzzled,
> Jonathan
> 

That's a Unicode Byte Order Mark. In UTF-8 it serves no purpose except
to indicate that a file is in fact UTF-8. A job which most editors
don't need help with.

See http://en.wikipedia.org/wiki/Byte_order_mark

Øsse

```

## Andreas Schwab, 2014-01-04 21:54

Subject: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <87lhyv5s79.fsf@igel.home>
URL: https://gitlist.dev/e/87lhyv5s79.fsf%40igel.home
In-Reply-To: <loom.20140104T223713-502@post.gmane.org>

```
Øystein Walle <oystwa@gmail.com> writes:

> Jonathan Nieder <jrnieder <at> gmail.com> writes:
>
>> 
>> Hi,
>> 
>> Thomas Ackermann wrote:
>> 
>> > --- a/Documentation/user-manual.txt
>> > +++ b/Documentation/user-manual.txt
>> >  <at>  <at>  -1,5 +1,5  <at>  <at> 
>> > -Git User Manual
>> > +&#65279;Git User Manual
>> 
>> Why?
>> 
>> Puzzled,
>> Jonathan
>> 
>
> That's a Unicode Byte Order Mark.

No, its an ampersand, a hash, a number and a semicolon.  Definitely not
a BOM.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```

## Øystein Walle, 2014-01-04 22:12

Subject: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <loom.20140104T230716-552@post.gmane.org>
URL: https://gitlist.dev/e/loom.20140104T230716-552%40post.gmane.org
In-Reply-To: <87lhyv5s79.fsf@igel.home>

```
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> > That's a Unicode Byte Order Mark.
> 
> No, its an ampersand, a hash, a number and a semicolon.  Definitely not
> a BOM.
> 
> Andreas.
> 

You're right, of course :) I was a bit hasty.

#65279; is a HTML entity (or at least something like looks like one) for the
character U+FEFF, which also serves as the Byte Order Mark. I assume the
entity was added to the file by mistake.

Øsse

```

## Thomas Ackermann, 2014-01-05 08:22

Subject: Aw: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <1182656556.701681.1388910150664.JavaMail.ngmail@webmail16.arcor-online.net>
URL: https://gitlist.dev/e/1182656556.701681.1388910150664.JavaMail.ngmail%40webmail16.arcor-online.net
In-Reply-To: <20140104211834.GC12251@google.com>

```
 
This originally was an UTF8-BOM in user-manual.txt and notepad++ was so clever
not to show it in the patch-file :-| Pasting this into my webmail then produced 
complete rubbish which I didn't noticed ...

----- Original Nachricht ----
Von:     Jonathan Nieder <jrnieder@gmail.com>
An:      Thomas Ackermann <th.acker@arcor.de>
Datum:   04.01.2014 22:18
Betreff: Re: [PATCH] Improve user-manual html and pdf formatting

> Hi,
> 
> Thomas Ackermann wrote:
> 
> > --- a/Documentation/user-manual.txt
> > +++ b/Documentation/user-manual.txt
> > @@ -1,5 +1,5 @@
> > -Git User Manual
> > +&#65279;Git User Manual
> 
> Why?
> 
> Puzzled,
> Jonathan
> 

---
Thomas

```

## Junio C Hamano, 2014-01-06 17:20

Subject: Re: [PATCH] Improve user-manual html and pdf formatting
Message-ID: <xmqqd2k5jace.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqd2k5jace.fsf%40gitster.dls.corp.google.com
In-Reply-To: <352636633.1492236.1388826471175.JavaMail.ngmail@webmail10.arcor-online.net>

```
Thomas Ackermann <th.acker@arcor.de> writes:

> Use asciidoc style 'article' instead of 'book' and change asciidoc title level.
> This removes blank first page and superfluous "Part I" page (there is no "Part II")
> in pdf output. Also pdf size is decreased by this from 77 to 67 pages.
> In html output this removes unnecessary sub-tocs and chapter numbering.
>
> Signed-off-by: Thomas Ackermann <th.acker@arcor.de>
> ---
>  Documentation/Makefile        | 2 +-
>  Documentation/user-manual.txt | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/Makefile b/Documentation/Makefile
> index 91a12c7..36c58fc 100644
> --- a/Documentation/Makefile
> +++ b/Documentation/Makefile
> @@ -324,7 +324,7 @@ manpage-base-url.xsl: manpage-base-url.xsl.in
>  
>  user-manual.xml: user-manual.txt user-manual.conf
>  	$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
> -	$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d book -o $@+ $< && \
> +	$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d article -o $@+ $< && \
>  	mv $@+ $@
>  
>  technical/api-index.txt: technical/api-index-skel.txt \
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index cbb01a1..130c2f4 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -1,5 +1,5 @@
> -Git User Manual
> -_______________
> +&#65279;Git User Manual
> +===============

Will queue after dropping the extra.

Thanks.

```
