Branch: Tag:

2001-05-01

2001-05-01 14:25:43 by Johan Sundström <oyasumi@gmail.com>

Canonize attributes, so XML checkin diffs don't get so darned big for
no good reason whatsoever.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/module.pmod:1.5

38:    ({ "&lt;", "&gt;", "&#34;", "&#39;", "&amp;" }));   }    - static string writeattributes(mapping(string:string) attrs) { + static string writeattributes(mapping(string:string) attrs) + {    string s = ""; -  foreach (indices(attrs || ([]) ), string attr) { +  foreach(sort(indices(attrs || ([]))), string attr)    s += sprintf(" %s='%s'", attr, attributequote(attrs[attr])); -  } +     return s;   }