[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Figure spaces
From: |
Gavin D. Smith |
Subject: |
branch master updated: Figure spaces |
Date: |
Sun, 16 Jan 2022 08:03:00 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new cbc6972b5b Figure spaces
cbc6972b5b is described below
commit cbc6972b5b4de831d6aab2cd6b6857d7646a8605
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Jan 16 13:02:50 2022 +0000
Figure spaces
* doc/texinfo.tex (\unicodechardefs): Add definition for
U+2007 FIGURE SPACE. From Werner Lemberg.
* tp/Texinfo/Convert/HTML.pm (_convert_tab_command): Restrict
stripping whitespace to ASCII characters so that figure space
can be used for alignment in multitables.
* tp/t/21multitable.t (multitable_figure_space): New test.
---
ChangeLog | 11 +++++++++++
doc/texinfo.tex | 5 ++++-
tp/Texinfo/Convert/HTML.pm | 4 ++--
tp/t/21multitable.t | 9 +++++++++
4 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7116c15dde..b121697792 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2019-01-16 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Figure spaces
+
+ * doc/texinfo.tex (\unicodechardefs): Add definition for
+ U+2007 FIGURE SPACE. From Werner Lemberg.
+ * tp/Texinfo/Convert/HTML.pm (_convert_tab_command): Restrict
+ stripping whitespace to ASCII characters so that figure space
+ can be used for alignment in multitables.
+ * tp/t/21multitable.t (multitable_figure_space): New test.
+
2022-01-16 Patrice Dumas <pertusus@free.fr>
* po_document/POTFILES.in: add tp/Texinfo/Translations.pm.
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 2da7271f16..e66b7daa73 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{2022-01-02.13}
+\def\texinfoversion{2022-01-16.13}
%
% Copyright 1985, 1986, 1988, 1990-2021 Free Software Foundation, Inc.
%
@@ -10890,6 +10890,9 @@ directory should work if nowhere else does.}
\DeclareUnicodeCharacter{1EF8}{\~Y}%
\DeclareUnicodeCharacter{1EF9}{\~y}%
%
+ % Exotic spaces
+ \DeclareUnicodeCharacter{2007}{\hphantom{0}}%
+ %
% Punctuation
\DeclareUnicodeCharacter{2013}{--}%
\DeclareUnicodeCharacter{2014}{---}%
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 4f1b35354c..51a8bc5efb 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -4263,8 +4263,8 @@ sub _convert_tab_command ($$$$)
}
}
- $content =~ s/^\s*//;
- $content =~ s/\s*$//;
+ $content =~ s/^\s*//a;
+ $content =~ s/\s*$//a;
if ($self->in_string()) {
return $content;
diff --git a/tp/t/21multitable.t b/tp/t/21multitable.t
index 7df66555f4..41c1d7078d 100644
--- a/tp/t/21multitable.t
+++ b/tp/t/21multitable.t
@@ -196,6 +196,15 @@ my @test_invalid = (
@item it
@end multitable
'],
+['multitable_figure_space',
+'@multitable {999999999} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
+@item '."\x{2007}\x{2007}\x{2007}55".' @tab explanation
+@item '."\x{2007}\x{2007}535".' @tab explanation
+@item 49303 @tab explanation
+@end multitable
+',
+{'test_formats' => ['html'],}
+],
);
foreach my $test (@test_cases) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Figure spaces,
Gavin D. Smith <=