def testStripNBSP(self) -> None:
self.assertEqual(
- ApplyTexFilters("FixBareEmph", b'\\emph{Yes?}'),
+ ApplyTexFilters("FixBareNesting", b'\\emph{Yes?}'),
b'\\hspace{0pt}\\emph{Yes?}')
self.assertEqual(
- ApplyTexFilters("FixBareEmph", b'Reassuring.\n\n\\emph{Yes?}'),
+ ApplyTexFilters("FixBareNesting", b'Reassuring.\n\n\\emph{Yes?}'),
b'Reassuring.\n\n\\hspace{0pt}\\emph{Yes?}')
+ self.assertEqual(
+ ApplyTexFilters("FixBareNesting", b'\\st{Nope}'),
+ b'\\hspace{0pt}\\st{Nope}')
if __name__ == '__main__':