Skip to content

Commit

Permalink
show 'escape' character (0x1b) with show-marc
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBetts committed Oct 10, 2011
1 parent 9a3c9ed commit 6b39487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/catalog/marc/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def esc(s):
return re_html_replace.sub(lambda m: trans[m.group(1)], s)

def esc_sp(s):
return esc(s).replace(' ', ' ')
return esc(s).replace(' ', '&nbsp;').replace('\x1b', '<b>[esc]</b>')

class html_record():
def __init__(self, data):
Expand Down

0 comments on commit 6b39487

Please sign in to comment.