mercurial/ui.py
changeset 11302 e1dde7363601
parent 11225 d6dbd5e4ee72
child 11309 ef7636efeb01
child 11310 ac873ecfc3c2
equal deleted inserted replaced
11301:3d0591a66118 11302:e1dde7363601
   544         and GUI tools can override it to allow styling output without
   544         and GUI tools can override it to allow styling output without
   545         writing it.
   545         writing it.
   546 
   546 
   547         ui.write(s, 'label') is equivalent to
   547         ui.write(s, 'label') is equivalent to
   548         ui.write(ui.label(s, 'label')).
   548         ui.write(ui.label(s, 'label')).
       
   549 
       
   550         Callers of ui.label() should pass labeled text back to
       
   551         ui.write() with a label of 'ui.labeled' so implementations know
       
   552         that the text has already been escaped and marked up.
   549         '''
   553         '''
   550         return msg
   554         return msg