Bug#324453: [Pkg-doc-linux-devel] Bug#324453: doc-linux-text: Escape
sequences in some HOWTOS
Sven Joachim
sven_joachim at web.de
Sun Sep 25 08:50:26 UTC 2005
On Thu, Aug 25, 2005 Frank Lichtenheld wrote:
> On Mon, Aug 22, 2005 at 09:15:26AM +0200, Sven Joachim wrote:
>
>>Some of the HOWTOS are spread with nasty escape sequences, making them
>>hard to read. Unfortunately, three just updated HOWTOS are affected:
>>FBB.gz, LILO.gz and Linux+WinNT.gz.
>
>
> Thanks for the report, I will try to find out where they come from and
> how to avoid them.
On closer inspection, I found out that the affected HOWTOs can be
sorted out by zgrepping for "\[[0-9]\+m" in /usr/share/doc/HOWTO/en-txt.
As of version 2005.09-1 of doc-linux-text, this revealed the following
garbled HOWTOS:
LILO, Plug-and-Play-HOWTO, FBB, Modem-HOWTO,
Samba-Authenticated-Gateway-HOWTO, Linux+WinNT,
Ethernet-Bridge-netfilter-HOWTO.
Maybe you can try something like that in your build scripts:
find . -type f | xargs grep -l "\[[0-9]\+m" | xargs sed -i -e 's/\[[0-9]\+m//g'
This command is to be run in a directory with the uncompressed HOWTOs in
text format. I don't actually have the source for doc-linux, so I could not
test it there, but it worked for me after gunzipping the files in a copy of
the /usr/share/doc/HOWTO/en-txt tree. Note that this requires sed 3.95 or
higher due to the "-i" option.
Hope this helps,
Sven Joachim
More information about the Pkg-doc-linux-devel
mailing list