def bold(l):
 inside = []
 for m in _section.finditer(l):
  inside.append(m.span(0))
 current = 0
 outside = []
 for (start, end) in inside:
  outside.append((current, start))
  current = end
 outside.append((current, len(l)))
 inside = [l[s:e] for (s, e) in inside]
 inside = [s.replace('<b>', '').replace('</b>', '') for s in inside]
 outside = [l[s:e] for (s, e) in outside]
 outside = [l for l in outside if (l and (not l.isspace()))]
 return (inside, outside)

def bold ( l ) : inside = [ ] for m in _section . finditer ( l ) : inside . append ( m . span ( 0 ) ) current = 0 outside = [ ] for ( start , end ) in inside : outside . append ( ( current , start ) ) current = end outside . append ( ( current , len ( l ) ) ) inside = [ l [ s : e ] for ( s , e ) in inside ] inside = [ s . replace ( '<b>' , '' ) . replace ( '</b>' , '' ) for s in inside ] outside = [ l [ s : e ] for ( s , e ) in outside ] outside = [ l for l in outside if ( l and ( not l . isspace ( ) ) ) ] return ( inside , outside )
return the text .