diff --git a/doc/generic/pgf/CHANGELOG.md b/doc/generic/pgf/CHANGELOG.md index db1ecaa6a..1ad14dc09 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%