[xml/sgml-pkgs] Escape backslashes in the man pages

Marco d'Itri md at Linux.IT
Tue Mar 3 12:18:43 UTC 2009


Please advise. What should I use to build this document?

<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
  <!ENTITY debian  "<productname>Debian GNU/Linux</productname>">
  <!ENTITY docbook "<productname>DocBook</productname>">
  <!ENTITY sgml    "<abbrev>SGML</abbrev>">
]>

----- Forwarded message from Michal Marek <mmarek at suse.cz> -----

From: Michal Marek <mmarek at suse.cz>
To: Marco d'Itri <md at Linux.IT>
Cc: mit-devel at lists.printk.net
Subject: Re: [Mit-devel] Escape backslashes in the man pages
User-Agent: Thunderbird 2.0.0.19 (X11/20081227)

Marco d'Itri napsal(a):
> Escape backslashes in the man pages.
>
> --- a/doc/depmod.conf.sgml
> +++ b/doc/depmod.conf.sgml
> @@ -42,7 +42,7 @@
>      <para>
>        The format of <filename>depmod.conf</filename> and files under <filename>depmod.d</filename> is simple: one
>        command per line, with blank lines and lines starting with #
> -      ignored (useful for adding comments).  A \ at the end of a line
> +      ignored (useful for adding comments).  A \\ at the end of a line

Which conversion tool do you use to generate the manpages? docbook2man
from docbook-utils correctly escapes the backslashes and applying your
patch results in '\\\\' in the roff source.

Michal


_______________________________________________
Mit-devel mailing list
Mit-devel at dmesg2.printk.net
http://dmesg2.printk.net/cgi-bin/mailman/listinfo/mit-devel

----- End forwarded message -----

-- 
ciao,
Marco



More information about the debian-xml-sgml-pkgs mailing list