Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a35a51f

Browse files
authored
Merge pull request #20678 from anntzer/pgfc
Clarify comment about backend_pgf.writeln.
2 parents 9439818 + 99adcf9 commit a35a51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def common_texification(text):
116116

117117

118118
def writeln(fh, line):
119-
# every line of a file included with \\input must be terminated with %
120-
# if not, latex will create additional vertical spaces for some reason
119+
# Ending lines with a % prevents TeX from inserting spurious spaces
120+
# (https://tex.stackexchange.com/questions/7453).
121121
fh.write(line)
122122
fh.write("%\n")
123123

0 commit comments

Comments
 (0)