Package hsh :: Package content :: Module text_formatter
[hide private]
[frames] | no frames]

Module text_formatter

Classes [hide private]
  TextFormatter
Formats a given Text object to make it appropriate for presentation to the user, most importantly supporting line-folding for fixed width displays.
Functions [hide private]
 
pos_cmp(pos1, pos2)
Compare two vector positions.
Variables [hide private]
  __package__ = 'hsh.content'
Function Details [hide private]

pos_cmp(pos1, pos2)

 

Compare two vector positions.

Parameters:
  • pos1 - vector pair
  • pos2 - vector pair
Returns:
-1 if pos1 is before pos2, 0 if they are equal, 1 if it's after.