From b8bab5e8f70d99ecf62c5aa24b48d2be4a9a9510 Mon Sep 17 00:00:00 2001 From: muzimuzhi Date: Mon, 20 Dec 2021 09:54:20 +0800 Subject: [PATCH] fix(dv): Suppress white space at line end #1112 Signed-off-by: muzimuzhi --- doc/generic/pgf/CHANGELOG.md | 2 ++ tex/generic/pgf/modules/pgfmoduledatavisualization.code.tex | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/generic/pgf/CHANGELOG.md b/doc/generic/pgf/CHANGELOG.md index 7d5905769..3c9b07886 100644 --- a/doc/generic/pgf/CHANGELOG.md +++ b/doc/generic/pgf/CHANGELOG.md @@ -55,6 +55,8 @@ lot of contributed changes. Thanks to everyone who volunteered their time! - Add empty Pattern dictionary to Resources dictionary - Spelling and typo fixes in the manual - Update Debian installation instructions +- Suppress white space at line end when `datavisualization` reads from a file + #1112 ### Changed diff --git a/tex/generic/pgf/modules/pgfmoduledatavisualization.code.tex b/tex/generic/pgf/modules/pgfmoduledatavisualization.code.tex index f60764d0b..96686aa73 100644 --- a/tex/generic/pgf/modules/pgfmoduledatavisualization.code.tex +++ b/tex/generic/pgf/modules/pgfmoduledatavisualization.code.tex @@ -721,6 +721,7 @@ \def\pgf@partext{\par}% \def\pgf@datagroup@readline{% + \endlinechar=-1 % suppress white space at end; this is local to `\pgfdata` \immediate\read\r@pgf@reada to \pgf@temp% \ifx\pgf@temp\pgf@partext% \pgf@dv@format@emptyline%