Estou procurando um formatador para usar com meus commits do git. par
praticamente faz o que eu quero, com a (importante) limitação de que não consigo formatar listas com marcadores corretamente, que são bastante comuns em mensagens de commit.
Por exemplo:
% export PARINIT="rTbgqR B=.,?'_A_a_@ Q=_s>|"
% par << EOF
heredoc> [JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet lists. I like bullet lists a lot.
- I like bullet lists. I like bullet lists a lot. I am also a developer that doesn't like linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
heredoc> EOF
Isso fornece a saÃda:
[JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet
- lists. I like bullet lists a lot. I like bullet lists. I like
- bullet lists a lot. I am also a developer that doesn't like
- linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
Embora eu gostaria de ter algo assim:
[JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet
lists. I like bullet lists a lot.
- I like bullet lists. I like bullet lists a lot. I am also a
developer that doesn't like linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
Fazer isso par
seria o ideal, mas algum outro formatador independente na mesma linha também serviria.
Pandoc fará isso: