Rémi Boulle wrote:
> Maybe it is because in french typography colon are preceded by a non
> breaking word space and we have no space in english... Okay, it is a
> stupid mistake i give up trying to find excuses :-)
That's not stupid. It's something I've learned today :) And interesting
to keep in mind for user interface design. I think this patch makes
dirvish not care about spaces between the key and the colon, but I
haven't tested it :(
--- dirvish 2005-06-06 14:00:55.000000000 +0100
+++ dirvish.colon 2006-12-19 10:21:31.139716848 +0000
@@ -1173,9 +1173,9 @@
{
$key = undef;
}
- elsif(/^\S+:/)
+ elsif(/^\S+\s*:/)
{
- ($key, $val) = split(/:\s*/, $_, 2);
+ ($key, $val) = /^(\S+)\s*:\s*(.*)$/;
length($val) or next;
$k = $key; $key = undef;
Don't just apply the patch - change it by hand. My dirvish may be a
little different from yours, because I've tweaked the odd thing. I can't
think of a reason why dirvish shouldn't have this change.
Cheers, Dave
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish