[darcs-users] annotate output
Petr Rockai
me at mornfall.net
Sun Sep 5 19:37:26 UTC 2010
Max Battcher <me at worldmaker.net> writes:
> 045b19 First line of the file
> oac77a second line, tweaked by Lele
> fac657 third line, added by John
> ...
>
> I'm still wondering if the second document may also be better in a YAML format
> of some sort... Another toy example:
>
> - 045b19: |
> First line of file
> - oac77a: |
> second line, tweaked by Lele
> third line, tweaked by Lele
> - fac657: |
> man line, added by John
>
> That doesn't seem that much worse than the existing human-readable annotate
> output...
I should remind you that what you propose is not legal YAML, which was
also my reason against using it for annotate in the first place. You
either mangle the file contents doing custom non-YAML quoting, or you
use double-quoted YAML strings with escapes.
The YAML spec explicitly says, that there's no other way to encode
arbitrary strings than to use "..." with \-sequences, which will lead to
really hard to read output (both for humans and non-YAML machines).
Yours,
Petr.
More information about the darcs-users
mailing list