PAR does i.m.o. a much better formatting as Vim default formatter.
But sometimes PAR does’t work very well.
p.e.
this is a test this is a test this is a test. this is my text this is my text this is my text.
formatting with par 44 becomes:
this is a test this is a test this is a t. this is tes my text this is my text this t. this is is my tex t.
Is there a way to resolve this kind of formattion?
Par is very powerful, and complex. I don’t know 10% of its capacity, but would
be worth spending an entire week just to master it.
What’s happening with your text is related to the last characters in each line.
As you can see, every line in:
Ends with “t.”. The Par manual says in the DESCRIPTION section:
Probably1 Par is guessing that
t.is a suffix, and thus removingthem in step 1. After everything is formated Par puts the
t.back aligningthem.
To solve this, pass the
soption with a value of 0. This way suffixes will bedisabled.
1 I’m saying probably because I’m not completely sure of that. As I
said earlier I’m not a master, maybe there is something else involved.