6

I have recently falled into an error because I didn't use % when I was supposed to. My question is now: When do I have to use % at the end of the line and when should I leave it out?

7heViking
  • 1,183

1 Answers1

8

An end of line is a space so your question is asking when to add a space.

foo
bar

is the same as

foo bar

but

foo%
bar

is the same as

foobar

so it just depends on the context. Sometimes a space is needed to separate words, or for TeX syntactic reasons, sometimes a space is not needed but ignored anyway, and sometimes a space is definitely wrong at that point.

David Carlisle
  • 757,742