sympy-paper icon indicating copy to clipboard operation
sympy-paper copied to clipboard

Newline after every dot

Open Upabjojr opened this issue 8 years ago • 5 comments

What about adding a Travis test to check that every dot ending a period is followed by a new-line?

It would make it easier to see differences in PR.

Upabjojr avatar Mar 18 '16 19:03 Upabjojr

git diff --word-diff works pretty well for the actual differences in the paper. Not sure if there is any option to see word diffs on github.

hargup avatar Mar 18 '16 20:03 hargup

Not sure if there is any option to see word diffs on github.

That's the point.

Upabjojr avatar Mar 18 '16 20:03 Upabjojr

GitHub sort of already shows the word diff. It highlights the words that were changed on a line in a darker green or red. Unfortunately, it isn't quite the same. For instance, here, I rewrapped several lines, and it highlights those words that moved down a line. git show 164c13d6ae9d7ec3ce8197414405b75920fe46da --word-diff is much more concise.

asmeurer avatar Mar 18 '16 20:03 asmeurer

I think @moorepants suggested using carriage returns. Does that mean you could use normal newline wrapping?

I'm for doing whatever we need to do. I'll need to figure out how to configure emacs to do the right thing, but it shouldn't be hard.

asmeurer avatar Mar 18 '16 20:03 asmeurer

I just meant use a \n after every period so that sentences can be changed an diffed individually. I think that is the same thing @Upabjojr is suggesting. It's not a huge deal though. It'll probably work fine with wrapping sentences in the source and simply continuing with new sentences on the same line. Maybe see if there is actually an issue when we try to write before implementing anything.

moorepants avatar Mar 18 '16 22:03 moorepants