#!/usr/bin/env python
"""
Pandoc filter to removing string from the text
"""
from pandocfilters import toJSONFilter, Para
def debug(content):
file = open('debug.txt', 'w')
for item in content:
file.write("%s\n" % item)
def nbsp(key, value, format, meta):
uniString = unicode(value, "UTF-8")
uniString = value.replace(" ", " ")
return uniString
if __name__ == "__main__":
toJSONFilter(nbsp)
pandoc file1.html --filter ./nbsp.py -o file1.tex