Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a35a51f

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_pgf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.