anchor.diff:  %   limitations under the License.
   
   %% @author Thorsten Schuett <schuett@zib.de>
  -%% @doc web helpers module for mgmt server to generated the web interface
  +%% @doc web helpers module for mgmt server to generate the web interface
   %% @version $Id$
   -module(webhelpers).
   -author('schuett@zib.de').
  
positive.code:          getMonitorClientData/0, getMonitorRingData/0,
           lookup/1, set_key/2, delete_key/2, isPost/1,
           safe_html_string/1, safe_html_string/2, html_pre/2,
           pid_to_integer/1, color/1, format_coordinate/1,
           format_nodes/1, format_centroids/1
       ]).
  
  
negative.code:         _ -> Coords
      end.
  
  % @doc Choose a random color for a Pid
  -spec color(comm:mypid()) -> string().
  color(Pid) ->
      Hash = erlang:phash2(Pid, 256*256*256),
      R = Hash rem 256,
      G = (Hash div 256) rem 256,
      B = (Hash div (256*256)) rem 256,
      io_lib:format("rgb(~p,~p,~p)",[R,G,B]).
  
  % @doc Get a string representation for a vivaldi coordinate
  -spec format_coordinate([gossip_vivaldi:network_coordinate(),...]) -> string().
  