]>
git.scottworley.com Git - paperdoorknob/blob - texfilter_test.py
66144e821656398ec53d1a4c2e5936c36ca8f578
1 # paperdoorknob: Print glowfic
3 # This program is free software: you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation, version 3.
9 from texfilter
import ApplyTexFilters
12 class TestTexFilters(unittest
.TestCase
):
14 def testStripNBSP(self
) -> None:
16 ApplyTexFilters("FixBareNesting", b
'\\emph{Yes?}'),
17 b
'\\hspace{0pt}\\emph{Yes?}')
19 ApplyTexFilters("FixBareNesting", b
'Reassuring.\n\n\\emph{Yes?}'),
20 b
'Reassuring.\n\n\\hspace{0pt}\\emph{Yes?}')
22 ApplyTexFilters("FixBareNesting", b
'\\st{Nope}'),
23 b
'\\hspace{0pt}\\st{Nope}')
26 if __name__
== '__main__':