added zero-width space in front of apostrophe

This commit is contained in:
Ondrej Vasik 2007-06-19 12:50:45 +00:00
parent 9706403895
commit f76662d8aa
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -urNp linuxdoc-tools-0.9.21/lib/dist/fmt_txt.pl devel/lib/dist/fmt_txt.pl
--- linuxdoc-tools-0.9.21/lib/dist/fmt_txt.pl 2001-12-23 14:08:49.000000000 +0100
+++ devel/lib/dist/fmt_txt.pl 2007-06-19 14:35:30.000000000 +0200
@@ -78,6 +78,7 @@ my $txt_escape = sub {
$data =~ s|"|\\\&\"|g; # Insert zero-width space in front of "
$data =~ s|^\.|\\&.|; # ditto in front of . at start of line
+ $data =~ s|^\'|\\&\'|; # ditto in front of ' at start of line
$data =~ s|\\|\\\\|g; # Escape backslashes
return ($data);

View File

@ -5,7 +5,7 @@ Name: linuxdoc-tools
Obsoletes: sgml-tools
Obsoletes: linuxdoc-sgml
Version: 0.9.21
Release: 8%{?dist}
Release: 9%{?dist}
License: Freely distributable
Group: Applications/Publishing
Source: http://http.us.debian.org/debian/pool/main/l/linuxdoc-tools/%{name}_%{version}.tar.gz
@ -14,6 +14,7 @@ Patch1: linuxdoc-tools-0.9.20-strip.patch
Patch2: linuxdoc-tools-0.9.20-lib64.patch
Patch3: linuxdoc-tools-ifpdf.patch
Patch4: linuxdoc-tools-fi.patch
Patch5: linuxdoc-tools-apostrophestart.patch
Requires: jade
Url: http://packages.qa.debian.org/l/linuxdoc-tools.html
BuildRoot: %{_tmppath}/%{name}-root
@ -41,6 +42,7 @@ documentation.
%patch2 -p1 -b .lib64
%patch3 -p1 -b .badif
%patch4 -p1 -b .fi
%patch5 -p1 -b .apostrophe
%build
%configure --with-installed-nsgmls --with-installed-iso-entities
@ -100,6 +102,9 @@ exit 0
%{_mandir}/*/*
%changelog
* Tue Jun 19 2007 Ondrej Vasik <ovasik@redhat.com 0.9.21-9
- Applied patch from upstream (bug #61414)
* Thu Jan 11 2007 Tim Waugh <twaugh@redhat.com> 0.9.21-8
- Applied patch from Kir Kolyshkin (bug #204902):
- added a patch from debian bug #321998 (obsoletes patch -badif)